Skip to content

Instantly share code, notes, and snippets.

@Wizek
Created February 8, 2016 15:40
Show Gist options
  • Select an option

  • Save Wizek/c8e5e3ee473bd8e07e55 to your computer and use it in GitHub Desktop.

Select an option

Save Wizek/c8e5e3ee473bd8e07e55 to your computer and use it in GitHub Desktop.
haskell stack: hspec trace prof bug
➜ foo-proj git:(master) ✗ stack test --trace
foo-proj-0.1.0: test (suite: spec, args: " +RTS " " -xc " )
spec: unexpected argument ` +RTS '
Try `spec --help' for more information.
Test suite failure for package foo-proj-0.1.0
spec: exited with: ExitFailure 1
Logs printed to console
➜ foo-proj git:(master) ✗ stack test --executable-profiling --test-arguments "+RTS -xc"
foo-proj-0.1.0: test (suite: spec, args: +RTS -xc)
Vertex
should
Edge
should
Bar vertex to Baz
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Vertex.getEidB,
called from Vertex.CAF:getEidB2
--> evaluated by: Vertex.getEidB,
called from Vertex.mkBaz,
called from Main.spec,
called from Main.CAF:main44
--> evaluated by: Utils.showsPrec,
called from Lib.renderXMLVertexSimpleBar,
called from Main.%,
called from Main.spec,
called from Main.CAF:main9
--> evaluated by: Lib.renderXMLVertexSimpleBar,
called from Main.%,
called from Main.spec,
called from Main.CAF:main9
--> evaluated by: Diff.diff,
called from Main.longShouldBe,
called from Main.spec
*** Exception (reporting due to +RTS -xc): (THUNK_2_0), stack trace:
Vertex.getEidB,
called from Vertex.CAF:getEidB2
Baz vertex to Bar FAILED [1]
Failures:
spec/Spec.hs:65:
1) Baz vertex to Bar
uncaught exception: ErrorCall (Prelude.read: no parse)
Randomized with seed 1670244676
Finished in 0.0021 seconds
4 examples, 1 failure
*** Exception (reporting due to +RTS -xc): (THUNK_STATIC), stack trace:
Main.spec
Test suite failure for package foo-proj-0.1.0
spec: exited with: ExitFailure 1
Logs printed to console
➜ foo-proj git:(master) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment