presto-developers team mailing list archive
-
presto-developers team
-
Mailing list archive
-
Message #00002
[Bug 845817] Re: Tests won't runs because of new cabal test framework
Today I managed to understand how test-framework works. Now all (around
100) tests are building and running 100% :)
The current setup has presto.cabal with a "Test-suite" section, which
indicated that an executable derived from AllTests.hs should be used as
the test driver.
All tests are gathered using the test-framework and test-framework-hunit
packages and called from AllTests.hs. When "cabal test" is run, cabal
just runs AllTests (the executable) and reports the results.
All developers should always run all the tests regularly, specially
before pushing changes to the main branch. This is how you run them:
* cabal configure --enable-tests
* cabal build (you'll see some warnings, don't worry, they are OK)
* cabal test
--
You received this bug notification because you are a member of Presto
developers, which is subscribed to Presto.
https://bugs.launchpad.net/bugs/845817
Title:
Tests won't runs because of new cabal test framework
Status in Presto: Programming with music!:
Fix Committed
Bug description:
Cabal reports that the current (workaround) approach for running
(HUnit) tests won't run anymore. This is because of the new testing
framework implemented starting in Cabal 1.10. We should wrap our
current tests with the test-framework package and configure Cabal to
use the resulting executable. This will make things easier and more
beautiful. A simple "cabal test" should then be sufficient to run all
tests.
To manage notifications about this bug go to:
https://bugs.launchpad.net/presto/+bug/845817/+subscriptions
References