mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-11-10 15:14:48 +03:00
2e829f5bc9
And a CONTRIBUTING.md, for help on running tests
818 B
818 B
Contributors Guide
Testing
The tests make use of the Tasty test framework.
There are two test suites, functional tests, and wrapper tests.
Testing with Cabal
Running all the tests
$ cabal test
Running just the functional tests
$ cabal test func-test
Running just the wrapper tests
$ cabal test wrapper-test
Running a subset of tests
Tasty supports providing Patterns as command line arguments, to select the specific tests to run.
$ cabal test func-test --test-option "-p hlint"
The above recompiles everything every time you use a different test option though.
An alternative is
$ cabal run haskell-language-server:func-test -- -p "hlint enables"