Skip to content

Commit

Permalink
Add test and close #4044
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Apr 2, 2019
1 parent 2eafa67 commit e0ca0ea
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/tests/4044-no-run-tests-config/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import StackTest

main :: IO ()
main = do
stack ["test"]
stack ["build", "foo:test:foo"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.cabal
2 changes: 2 additions & 0 deletions test/integration/tests/4044-no-run-tests-config/files/Test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
main :: IO ()
main = error "You shall not pass!"
10 changes: 10 additions & 0 deletions test/integration/tests/4044-no-run-tests-config/files/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: foo
version: 0
dependencies:
- base

library: {}

tests:
foo:
main: Test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build:
test-arguments:
no-run-tests: true
resolver: ghc-8.2.2
1 change: 1 addition & 0 deletions test/integration/tests/copy-bins-works/files/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.cabal

0 comments on commit e0ca0ea

Please sign in to comment.