Skip to content

Commit

Permalink
update test instructions (#129)
Browse files Browse the repository at this point in the history
Co-authored-by: “meeragjoshi” <[email protected]>
  • Loading branch information
meeragjoshi and meeragjoshi authored Nov 27, 2023
1 parent eb1c7e9 commit 4061ab1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ First wallet address: txch1v8vergyvwugwv0tmxwnmeecuxh3tat5jaskkunnn79zjz0muds0ql
01:02 +896 ~1: All tests passed!
```

For integration tests, run the following command:
For integration tests, execute the following script:

```console
dart test integration_test/ --concurrency=1
bash ./integration_test/run_tests.sh
```

```console
Expand Down Expand Up @@ -67,18 +67,23 @@ Install [Flutter](https://docs.flutter.dev/get-started/install) and add the flut

### Generate Coverage Report

Run the following commands to generate the coverage report:

Run tests
```console
flutter test ./integration_test test --coverage --concurrency=1
bash ./integration_test/run_tests.sh
flutter test test --coverage --coverage-path=coverage/test.info
```

Merge coverage files
```console
genhtml coverage/lcov.info -o coverage
lcov --add-tracefile coverage/test.info --add-tracefile coverage/integration_test.info --output-file coverage/merged_coverage.info
```

View the coverage report:
Generate coverage report
```console
genhtml coverage/merged_coverage.info -o coverage
```

View the coverage report
```console
open coverage/index.html
```

0 comments on commit 4061ab1

Please sign in to comment.