-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cabal Test 2.0 #3578
Comments
OK, if this solves doctest I'm all for it! |
Related: #2327 |
Well, that depends on a satisfactory resolution of the preprocessor issues stemming from #3545. |
This was referenced Jul 22, 2016
l29ah
added a commit
to l29ah/pontarius-xmpp
that referenced
this issue
May 26, 2020
since now it's a part of cabal invocation, see haskell/cabal#2327 yet it's not called by `cabal test`, see haskell/cabal#3578
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to revise the test interface in Cabal 2.0 to reflect what we have learned in the last six years.
In no particular order, here are some lessons I've picked up:
doctest
is much more difficult than it should be. This should not require a custom Setup.hs!I propose to design a new test interface to become the default interface in Cabal 2.0. In this document, I will refer to it as "test interface 2.0". I want to start by building off our success with the standard I/O interface; therefore, a "test suite" will consist of an executable which Cabal will compile. Test interface 2.0 will define a standard command-line interface for test suites; this allows us to incorporate desirable features (mainly introspection) with minimal overhead for users.
There is discussion in #3545 regarding pre-processors; it would be natural to treat test generators like
doctest
as pre-processors.The test logging features should be removed from the Cabal library. We can provide minimal logging features in cabal-install.
The text was updated successfully, but these errors were encountered: