haskell-language-server/CONTRIBUTING.md
Alan Zimmerman 2e829f5bc9 Add tests for Plugin global enable via config
And a CONTRIBUTING.md, for help on running tests
2020-12-22 13:13:38 +00:00

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"