@@ -34,16 +34,21 @@ browse coverage.
34
34
35
35
You can run CI locally. The various steps are located in ` ci/*.sh ` .
36
36
37
- 1 . ` ci/fmt.sh ` requires node (specifically prettier).
38
- 1 . ` ci/lint.sh ` requires [ shellcheck] ( https://github.com/koalaman/shellcheck#installing ) .
39
- 1 . ` ci/test.sh ` requires the [ Autobahn Test suite pip package ] ( https://github.com/crossbario/autobahn-testsuite ) .
40
- 1 . ` ci/run.sh ` runs the above scripts in order.
37
+ 1 . ` ci/fmt.sh ` which requires node (specifically prettier).
38
+ 1 . ` ci/lint.sh ` which requires [ shellcheck] ( https://github.com/koalaman/shellcheck#installing ) .
39
+ 1 . ` ci/test.sh `
40
+ 1 . ` ci/run.sh ` which runs the above scripts in order.
41
41
42
42
For coverage details locally, please see ` ci/out/coverage.html ` after running ` ci/test.sh ` .
43
43
44
44
See [ ci/image/Dockerfile] ( ci/image/Dockerfile ) for the installation of the CI dependencies on Ubuntu.
45
45
46
- You can also run tests normally with ` go test ` once you have the
47
- [ Autobahn Test suite pip package] ( https://github.com/crossbario/autobahn-testsuite )
48
- installed. ` ci/test.sh ` just passes a default set of flags to ` go test ` to collect coverage,
46
+ You can also run tests normally with ` go test ` .
47
+ ` ci/test.sh ` just passes a default set of flags to ` go test ` to collect coverage,
49
48
enable the race detector, run benchmarks and also prettifies the output.
49
+
50
+ If you pass flags to ` ci/test.sh ` , it will pass those flags directly to ` go test ` but will also
51
+ collect coverage for you. This is nice for when you don't want to wait for benchmarks
52
+ or the race detector but want to have coverage.
53
+
54
+ Coverage percentage from codecov and the CI scripts will be different because they are calculated differently.
0 commit comments