#824: cabal install --enable-tests does not install test dependencies. ---------------------------------+------------------------------------------ Reporter: creswick | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ---------------------------------+------------------------------------------ Cabal install normally installs all the necessary project dependencies; however, this is not happening for the dependencies specified in the Test- suite stanzas. Here's an example cabal file:
{{{ Name: foo Version: 1.0 License: BSD3 Cabal-Version: >= 1.9.2 Build-Type: Simple executable foo main-is: foo.hs build-depends: base , xml == 1.3.7 Test-Suite test-foo type: exitcode-stdio-1.0 main-is: test-foo.hs build-depends: base , QuickCheck >= 2.0 }}} `cabal install` will install xml if necessary, then build foo, but `cabal install --enable-tests` complains that QuickCheck is not available: {{{ $ cabal install --enable-tests Resolving dependencies... Configuring foo-1.0... cabal: At least the following dependencies are missing: QuickCheck >=2.0 cabal: Error: some packages failed to install: foo-1.0 failed during the configure step. The exception was: ExitFailure 1 }}} This causes some problems when building tests with `cabal-dev`: https://github.com/creswick/cabal-dev/issues#issue/10 (Using cabal-install 0.10.2 built with Cabal 1.10.1.0) -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/824> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel