command line arguments - Build haskell stack tests without running -


i've made simple project failing test suite https://github.com/k-bx/noruntests-play

now when run stack --test --no-run-tests build expect build project, not run tests. instead, runs tests:

➜  noruntests-play git:(master) stack --test --no-run-tests build noruntests-play-0.1.0.0: test (suite: test)  test: error callstack (from hascallstack):   error, called @ tests/tests.hs:4:8 in main:main  test suite failure package noruntests-play-0.1.0.0     test:  exited with: exitfailure 1 logs printed console 

what doing wrong here? thank you!

you should put build option before --test this:

$ stack build --test --no-run-tests 

i'm not sure whether it's bug or feature. can open issue here if you're interested in feedback developers. me seems strange pass --test before build. in reasonable sense --test subpart of build , subparts or options specified right of main option.

also there's shorter version of want (because build --test test):

$ stack test --no-run-tests 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -