Skip to content

Commit 4061ab1

Browse files
authored
update test instructions (#129)
Co-authored-by: “meeragjoshi” <[email protected]>
1 parent eb1c7e9 commit 4061ab1

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ First wallet address: txch1v8vergyvwugwv0tmxwnmeecuxh3tat5jaskkunnn79zjz0muds0ql
3434
01:02 +896 ~1: All tests passed!
3535
```
3636

37-
For integration tests, run the following command:
37+
For integration tests, execute the following script:
3838

3939
```console
40-
dart test integration_test/ --concurrency=1
40+
bash ./integration_test/run_tests.sh
4141
```
4242

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

6868
### Generate Coverage Report
6969

70-
Run the following commands to generate the coverage report:
71-
70+
Run tests
7271
```console
73-
flutter test ./integration_test test --coverage --concurrency=1
72+
bash ./integration_test/run_tests.sh
73+
flutter test test --coverage --coverage-path=coverage/test.info
7474
```
7575

76+
Merge coverage files
7677
```console
77-
genhtml coverage/lcov.info -o coverage
78+
lcov --add-tracefile coverage/test.info --add-tracefile coverage/integration_test.info --output-file coverage/merged_coverage.info
7879
```
7980

80-
View the coverage report:
81+
Generate coverage report
82+
```console
83+
genhtml coverage/merged_coverage.info -o coverage
84+
```
8185

86+
View the coverage report
8287
```console
8388
open coverage/index.html
8489
```

0 commit comments

Comments
 (0)