[Hackage] #806: cabal test should not concatenate test logs by default

#806: cabal test should not concatenate test logs by default ----------------------------+----------------------------------------------- Reporter: tibbe | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- At the moment `cabal test` concatenates the human readable test logs by default. I don't find this very useful and makes the logs look like there's a bug in Cabal. I suggest that we don't append the logs by default (if ever). -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/806 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#806: cabal test should not concatenate test logs by default ----------------------------+----------------------------------------------- Reporter: tibbe | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by tibbe): This looks particularly bad when you pass `--show-details=always`: {{{ $ cabal test --show-details=always simple Running 1 test suites... Test suite simple: RUNNING...
Test suite simple: RUNNING... Basic socket operations:
testSend: [OK]
testSendAll: [OK]
testSendTo: [OK]
testSendAllTo: [OK]
testSendMany: [OK]
testSendManyTo: [OK]
testRecv: [OK]
testOverFlowRecv: [OK]
testRecvFrom: [OK]
testOverFlowRecvFrom: [OK]
Test Cases Total Passed 10 10 Failed 0 0 Total 10 10 Test suite simple: PASS Test suite logged to: dist/test/network-2.3.0.2-simple.log Test suite simple: RUNNING... Basic socket operations:
testSend: [OK]
testSendAll: [OK]
testSendTo: [OK]
testSendAllTo: [OK]
testSendMany: [OK]
testSendManyTo: [OK]
testRecv: [OK]
testOverFlowRecv: [OK]
testRecvFrom: [OK]
testOverFlowRecvFrom: [OK]
Test Cases Total Passed 10 10 Failed 0 0 Total 10 10 Test suite simple: PASS
}}}
-- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/806#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#806: cabal test should not concatenate test logs by default ----------------------------+----------------------------------------------- Reporter: tibbe | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by ttuegel): Back when there was a command line option for appending the log files, this was the default. That option went away and now we are appending by default. I agree, though, that we probably shouldn't. The situation is a little complicated because the log file name templates can cause logs for multiple test suites to be written to the same file; therefore, we have to use "appendFile" when we actually write to the file. I am attaching a patch that attempts to solve the issue by removing all the log files before running any tests. Because the user could always use the log naming templates to rename the files, it is difficult to tell what's a log file; the patch assumes that any ordinary file in the test log directory "dist/test" is a log file. This should be a correct assumption: everything that Cabal puts in "dist/test" that isn't a log file goes into a subdirectory. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/806#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#806: cabal test should not concatenate test logs by default ----------------------------+----------------------------------------------- Reporter: tibbe | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by guest): I am enjoying starting to use cabal test, and this is my biggest annoyance. Originally I thought there was a defect and things weren't working correctly. Please put this in the 1.10 milestone. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/806#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#806: cabal test should not concatenate test logs by default
----------------------------+-----------------------------------------------
Reporter: tibbe | Owner:
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: new => closed
* resolution: => fixed
Comment:
Applied.
{{{
Thu Mar 3 04:18:40 GMT 2011 Thomas Tuegel

#806: cabal test should not concatenate test logs by default ----------------------------+----------------------------------------------- Reporter: tibbe | Owner: 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/806#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage