Skip to content

Commit 2b04596

Browse files
author
maxime.dharboulle
committed
finale update
1 parent 3d5aefd commit 2b04596

File tree

5 files changed

+528
-13
lines changed

5 files changed

+528
-13
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Compute Wallet Value - BDD
22
Maxime d'Harboullé 4AL1
3+
*Behavior Driven Developement school project to use cucumber for testing*
34
## Install dependencies
45
```npm install```
56

6-
## Build
7-
```npm run build```
7+
## Scripts
8+
```npm run build``` builds the ts into js to ./build
89

9-
## Launch Cucumber tests (builds before test)
10-
```npm test```
10+
```npm run test:unit``` launches unit tests
1111

12-
## Code
13-
Prototype:
12+
```npm run test:cucumber``` launches cucumber tests on the features in ```./features/...```
13+
## Prototype:
1414
```ts
1515
async function computeWalletValue(wallet: Wallet, returnValueCurrency: Currencies = Currencies.EUR, date: string = 'latest'): Promise<number>
1616
```
17-
// Possible currencies: CAD HKD ISK PHP DKK HUF CZK AUD RON SEK IDR INR BRL RUB HRK JPY THB CHF SGD PLN BGN TRY CNY NOK NZD ZAR USD MXN ILS GBP KRW MYR
17+
**Possible currencies:** CAD HKD ISK PHP DKK HUF CZK AUD RON SEK IDR INR BRL RUB HRK JPY THB CHF SGD PLN BGN TRY CNY NOK NZD ZAR USD MXN ILS GBP KRW MYR
1818

19-
Check-out testIndex.ts for an example of how to call the function or run it by using ```npm run start:test```
19+
Check-out our unit test :```./test.test.js ``` for an example of how to call the function or run it by using ```npm run test:unit```
2020

0 commit comments

Comments
 (0)