You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that Stack is doing something in a different way than what cabal-install does in its v1/v2 test commands. Both cabal test and cabal new-test work fine while stack test stucks using the current stable version, that looks to be fixed in #4498 and yet using master branch still gives failed tests
Steps to reproduce
stack unpack vty to get the latest Hackage sources of the vty package
Use stack.yaml with LTS-13 in it
Run command stack test.
Expected
stack test pass
Actual
Some of the tests fail -
vty-5.25.1: test (suite: verify-config)
example config parses: [OK]
Test Cases Total
Passed 1 1
Failed 0 0
Total 1 1
vty-5.25.1: Test suite verify-config passed
vty-5.25.1: test (suite: verify-crop-span-generation)
verify-crop-span-generationStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-crop-span-generation failed
vty-5.25.1: test (suite: verify-display-attributes)
verify-display-attributesStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-display-attributes failed
vty-5.25.1: test (suite: verify-empty-image-props)
verify-empty-image-propsStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-empty-image-props failed
vty-5.25.1: test (suite: verify-eval-terminfo-caps)
verify-eval-terminfo-capsStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-eval-terminfo-caps failed
vty-5.25.1: test (suite: verify-image-ops)
verify-image-opsStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-image-ops failed
vty-5.25.1: test (suite: verify-image-trans)
verify-image-transStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-image-trans failed
vty-5.25.1: test (suite: verify-inline)
verify-inlineStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-inline failed
vty-5.25.1: test (suite: verify-layers-span-generation)
verify-layers-span-generationStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-layers-span-generation failed
vty-5.25.1: test (suite: verify-parse-terminfo-caps)
verify-parse-terminfo-capsStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-parse-terminfo-caps failed
vty-5.25.1: test (suite: verify-simple-span-generation)
verify-simple-span-generationStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-simple-span-generation failed
vty-5.25.1: test (suite: verify-terminal)
verify-terminalStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-terminal failed
vty-5.25.1: test (suite: verify-using-mock-input)
synthesized typing of single visible chars translates to expected events: [OK]
synthesized typing of keys from capabilities tables translates to expected events: [OK]
synthesized typing of hard coded special keys translates to expected events: [OK]
synthesized typing of any key in the table translates to its paired event: [OK]
synthesized typing of 2x any key in the table translates to 2x paired event: [OK]
Properties Total
Passed 5 5
Failed 0 0
Total 5 5
vty-5.25.1: Test suite verify-using-mock-input passed
vty-5.25.1: test (suite: verify-using-mock-terminal)
verify-using-mock-terminalStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-using-mock-terminal failed
vty-5.25.1: test (suite: verify-utf8-width)
verify-utf8-widthStub: Prelude.read: no parse
vty-5.25.1: Test suite verify-utf8-width failed
Completed 2 action(s).
Test suite failure for package vty-5.25.1
verify-crop-span-generation: exited with: ExitFailure 1
verify-display-attributes: exited with: ExitFailure 1
verify-empty-image-props: exited with: ExitFailure 1
verify-eval-terminfo-caps: exited with: ExitFailure 1
verify-image-ops: exited with: ExitFailure 1
verify-image-trans: exited with: ExitFailure 1
verify-inline: exited with: ExitFailure 1
verify-layers-span-generation: exited with: ExitFailure 1
verify-parse-terminfo-caps: exited with: ExitFailure 1
verify-simple-span-generation: exited with: ExitFailure 1
verify-terminal: exited with: ExitFailure 1
verify-using-mock-terminal: exited with: ExitFailure 1
verify-utf8-width: exited with: ExitFailure 1
Logs printed to console
General summary/comments
It appears that Stack is doing something in a different way than what
cabal-install
does in its v1/v2 test commands. Bothcabal test
andcabal new-test
work fine whilestack test
stucks using the current stable version, that looks to be fixed in #4498 and yet usingmaster
branch still gives failed testsSteps to reproduce
stack unpack vty
to get the latest Hackage sources of thevty
packagestack.yaml
with LTS-13 in itstack test
.Expected
stack test
passActual
Some of the tests fail -
Stack version
Method of installation
current
master
branchThe text was updated successfully, but these errors were encountered: