streamly/test
Harendra Kumar 7de5d6d7ff Allow -Werror without inspection/fusion-plugin
We may want to use the -Werror build locally but fusion-plugin takes too
much time to build, so separate the two.
2021-02-09 02:12:48 +05:30
..
lib/Streamly/Test Print more information in failing tests 2021-01-27 19:09:51 +05:30
Streamly/Test make sliceBeginWith fail when first element fails predicate 2021-02-07 20:05:01 +05:30
README.md Separate streamly tests into another package 2020-12-15 17:48:34 +05:30
streamly-tests.cabal Allow -Werror without inspection/fusion-plugin 2021-02-09 02:12:48 +05:30
version-bounds.hs Add test checking for conflicting versions when build depends on ghc 2020-02-10 13:00:33 +05:30

Build a single test

$ cabal build test:Prelude.Serial

or:

$ cd test; cabal build Prelude.Serial

Build with optimizations:

$ cabal build --flag opt ...

Build all tests

$ cabal build --enable-tests all

or:

$ cd test; cabal build --enable-tests

Or this, note this command does not work as expected when in the "test" dir:

$ cabal build --enable-tests streamly-tests

Build and run

Running all test suites, use any of the following:

$ cabal test all

or:

$ cd test; cabal test

Or this, note this command does not work as expected when in the "test" dir:

$ cabal test streamly-tests

Build and Run a single test suite

To run Prelude.Serial test-suite:

$ cabal run test:Prelude.Serial

or:

$ cd test; cabal run Prelude.Serial

Note you could use cabal test Prelude.Serial but that unfortunately builds all the test suites before running Prelude.Serial.

Naming of test modules

Tests are organized by source modules. For example, for the source module Streamly.Data.Array and Streamly.Internal.Data.Array we have a test module Data.Array. For some modules tests for a source module are broken into multiple modules. For example, for Streamly.Prelude we have Streamly.Prelude.Serial, Streamly.Prelude.Async etc.