hspec / hspec-example

A Haskell/Hspec skeleton project

Home Page:http://hspec.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

incompatible with `cabal v2-test`

l29ah opened this issue · comments

/tmp/hspec-example $ cabal v2-test
cabal: Cannot test the package strip-0.0.0 because none of the components are
available to build: the test suite 'spec' is not available because the solver
did not find a plan that included the test suites. Force the solver to enable
this for all packages by adding the line 'tests: True' to the
'cabal.project.local' file.
/tmp/hspec-example $ cabal configure --enable-tests
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.RemoteRepo {remoteRepoName = "hackage.haskell.org",
remoteRepoURI = http://hackage.haskell.org/, remoteRepoSecure = Just True,
remoteRepoRootKeys =
["fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0","1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42","2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3","0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d","51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921"],
remoteRepoKeyThreshold = 3, remoteRepoShouldTryHttps = True}
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: strip-0.0.0 (user goal)
[__1] rejecting: strip:!test (constraint from config file, command line flag,
or user target requires opposite flag selection)
[__1] trying: strip:*test
[__2] next goal: strip:hspec-discover:exe.hspec-discover (dependency of strip
*test)
[__2] rejecting:
strip:hspec-discover:exe.hspec-discover-2.7.1/installed-oSvUTVKBocHKSIvyaugmz
(does not contain executable 'hspec-discover', which is required by strip
*test)
[__2] fail (backjumping, conflict set: strip,
strip:hspec-discover:exe.hspec-discover, strip:test)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: strip, strip:test,
strip:hspec-discover:exe.hspec-discover

v1-test works fine.

Hey @l29ah, thanks for reporting! Fixed on master. Sorry for the delay!