3`bin/test.sh` (path relative to the top level repo dir) can run selected
4test groups, generate coverage report, pass GHC RTS options when
5running tests. `test.sh` runs the tests with restricted memory, see
6`bin/test.sh` source for details on the amount of memory used or to change it.
8To generate coverage report:
11$ bin/test.sh --coverage
14To view coverage report, open `./hpc_index.html` in browser.
16See `bin/test.sh --help` for more info.
21$ cabal build test:Prelude.Serial
27$ cd test; cabal build Prelude.Serial
30Build with optimizations:
33$ cabal build --flag opt ...
39$ cabal build --enable-tests all
45$ cd test; cabal build --enable-tests
48Or this, note this command does not work as expected when in the "test" dir:
51$ cabal build --enable-tests streamly-tests
56Running all test suites, use any of the following:
68Or this, note this command does not work as expected when in the "test" dir:
71$ cabal test streamly-tests
74## Build and Run a single test suite
76To run `Prelude.Serial` test-suite:
79$ cabal run test:Prelude.Serial
85$ cd test; cabal run Prelude.Serial
88Note you could use `cabal test Prelude.Serial` but that unfortunately builds
89all the test suites before running `Prelude.Serial`.
91## Naming of test modules
93Tests are organized by source modules. For example, for the source
94module `Streamly.Data.Array` and `Streamly.Internal.Data.Array` we have
95a test module `Data.Array`. For some modules tests for a source module
96are broken into multiple modules. For example, for `Streamly.Prelude` we have
97`Streamly.Prelude.Serial`, `Streamly.Prelude.Async` etc.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list