Haskell block testing integrated in Leksah

I am writing Haskell code in the Leksah IDE. When I edit the code, Leksah builds the background and runs unit tests after the background compilation is complete.

In the "console" frame, I see the following:

Building UNFI-EIC-0.0.1...
Preprocessing test suite 'test-UNFI-EIC' for UNFI-EIC-0.0.1...
Preprocessing executable 'UNFI-EIC' for UNFI-EIC-0.0.1...
-----------------------------------------
Running 1 test suites...
Test suite test-UNFI-EIC: RUNNING...
test-UNFI-EIC: Prelude.head: empty list
Test suite test-UNFI-EIC: FAIL
Test suite logged to: dist/test/UNFI-EIC-0.0.1-test-UNFI-EIC.log
0 of 1 test suites (0 of 1 test cases) passed.

Where are the default test cases run? How to add appropriate unit tests to them? There is nothing obvious in the GUI menu ...

How can I edit the test suite for a package that integrates with Leksah?

+3
source share
1 answer

You can edit the unit test package by finding the link to the test set in the .cabalproject file .

*.cabal , test-suite:. test-suite: ExampleTests, ExampleTests - main .

, . Leksah IDE.

+1

All Articles