File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ First wallet address: txch1v8vergyvwugwv0tmxwnmeecuxh3tat5jaskkunnn79zjz0muds0ql
34
34
01:02 +896 ~1: All tests passed!
35
35
```
36
36
37
- For integration tests, run the following command :
37
+ For integration tests, execute the following script :
38
38
39
39
``` console
40
- dart test integration_test/ --concurrency=1
40
+ bash ./ integration_test/run_tests.sh
41
41
```
42
42
43
43
``` console
@@ -67,18 +67,23 @@ Install [Flutter](https://docs.flutter.dev/get-started/install) and add the flut
67
67
68
68
### Generate Coverage Report
69
69
70
- Run the following commands to generate the coverage report:
71
-
70
+ Run tests
72
71
``` 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
74
74
```
75
75
76
+ Merge coverage files
76
77
``` 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
78
79
```
79
80
80
- View the coverage report:
81
+ Generate coverage report
82
+ ``` console
83
+ genhtml coverage/merged_coverage.info -o coverage
84
+ ```
81
85
86
+ View the coverage report
82
87
``` console
83
88
open coverage/index.html
84
89
```
You can’t perform that action at this time.
0 commit comments