Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable psa for some tests #772

Merged
merged 1 commit into from
Apr 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Bugfixes:
Other improvements:
- Color output is now automatically disabled when output is redirected to a file.
Also respects a [`NO_COLOR`](https://no-color.org/) environment variable (#768)
- Fixes tests failing if the test platform has psa installed (#772)

## [0.20.0] - 2021-04-07

Expand Down
6 changes: 3 additions & 3 deletions test/SpagoSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ spec = around_ setup $ do
writeTextFile "src/Main.purs" "module Main where\nimport Prelude\nmain = unit"
rm "test/Main.purs"
spago ["build"]
spago ["build"] >>= shouldBeFailureStderr "check-direct-import-transitive-dependency.txt"
spago ["--no-psa", "build"] >>= shouldBeFailureStderr "check-direct-import-transitive-dependency.txt"

it "Spago should warn on unused dependencies" $ do
spago ["init"] >>= shouldBeSuccess
Expand All @@ -440,7 +440,7 @@ spec = around_ setup $ do
writeTextFile "src/Main.purs" "module Main where\nimport Prelude\nmain :: Unit\nmain = unit"
rm "test/Main.purs"
spago ["build"]
spago ["build"] >>= shouldBeSuccessStderr "check-unused-dependency.txt"
spago ["--no-psa", "build"] >>= shouldBeSuccessStderr "check-unused-dependency.txt"

describe "alternate backend" $ do

Expand Down Expand Up @@ -576,7 +576,7 @@ spec = around_ setup $ do

spago ["init"] >>= shouldBeSuccess
spago ["build"] >>= shouldBeSuccess
spago ["test"] >>= shouldBeSuccessOutputWithErr "test-output-stdout.txt" "test-output-stderr.txt"
spago ["--no-psa", "test"] >>= shouldBeSuccessOutputWithErr "test-output-stdout.txt" "test-output-stderr.txt"

it "Spago should fail nicely when the test module is not found" $ do

Expand Down