[Hackage] #803: cabal test after cabal configure --enable-tests without cabal build creates obscure output
#803: cabal test after cabal configure --enable-tests without cabal build creates obscure output ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- It wasn't obvious to me that cabal build would be required before cabal test. Can cabal test automatically run cabal build? Otherwise a message should be shown telling the user to run cabal build. Here is an example output {{{
Test suite runtests: RUNNING... Test suite runtests: FAIL Test suite logged to: dist/test/persistent-0.4.0.1-runtests.log Test suite runtests: RUNNING... Test suite runtests: FAIL Test suite logged to: dist/test/persistent-0.4.0.1-runtests.log Test suite runtests: FAIL Test suite logged to: dist/test/persistent-0.4.0.1-runtests.log 0 of 1 test suites (0 of 1 test cases) passed. }}}
The log is exactly the same as the output -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/803> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#803: cabal test after cabal configure --enable-tests without cabal build creates obscure output ----------------------------+----------------------------------------------- Reporter: guest | Owner: ttuegel Type: defect | Status: assigned Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Changes (by ttuegel): * owner: => ttuegel * status: new => assigned * version: 1.8.0.6 => 1.10.1.0 Comment: The patch I just attached fixes this issue by causing Cabal to warn the user if "setup test" is invoked before "setup build". I decided not to run "setup build" automatically because "setup install" does not do so either. Note that this is different than the behavior when "cabal install" is invoked (which runs "setup build" if necessary). My thinking is that "setup test" should mimic "setup install" while "cabal test" should mimic "cabal install"; this will require another patch for cabal- install. Thoughts? -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/803#comment:1> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#803: cabal test after cabal configure --enable-tests without cabal build creates obscure output ----------------------------+----------------------------------------------- Reporter: guest | Owner: ttuegel Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: assigned => closed * resolution: => fixed Comment: Applied. {{{ Thu Mar 3 16:46:11 GMT 2011 Thomas Tuegel <ttuegel@gmail.com> * Fail gracefully when running "setup test" before "setup build". }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/803#comment:2> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#803: cabal test after cabal configure --enable-tests without cabal build creates obscure output ----------------------------+----------------------------------------------- Reporter: guest | Owner: ttuegel Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment(by elga): * [http://www.releve-identite-operateur.fr/numbero-de-virgin-mobile.html virgin mobile] -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/803#comment:3> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#803: cabal test after cabal configure --enable-tests without cabal build creates obscure output ----------------------------+----------------------------------------------- Reporter: guest | Owner: ttuegel Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment(by edouard): D'autre part, la pauntte d'informations detaillees relatives a l'obtention du code rio Simyo et du code rio Virgin Mobile sont egalement disponibles. [http://www.releve-identite-operateur.fr/rio-simyo.html simyo] -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/803#comment:4> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
participants (1)
-
Hackage