Skip to content

Commit

Permalink
Reduce noise in external tests
Browse files Browse the repository at this point in the history
  • Loading branch information
x4lldux committed Dec 10, 2019
1 parent 60954c7 commit e17fb88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/verify-detect-exceptions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ echo "Attempting to detect exceptions"

check() {
echo -n "PROPCHECK_DETECT_EXCEPTIONS: $PROPCHECK_DETECT_EXCEPTIONS "
mix propcheck.clean > /dev/null
fixture=$1
output=$(mix test --include manual test/verify_exception_detection_test.exs --seed $seed)
count_detected_exceptions=$(echo "$output" | grep -c "PropCheck detected")
Expand All @@ -26,6 +25,8 @@ check() {
check .travis-fixtures/exception_detection/non_global_detection.output
PROPCHECK_DETECT_EXCEPTIONS=0 check .travis-fixtures/exception_detection/global_disable_detection.output
PROPCHECK_DETECT_EXCEPTIONS= check .travis-fixtures/exception_detection/global_disable_detection.output

mix propcheck.clean > /dev/null
PROPCHECK_DETECT_EXCEPTIONS=1 check .travis-fixtures/exception_detection/global_enable_detection.output

exit 0
1 change: 1 addition & 0 deletions test/verify_counter_examples_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule VerifyCounterExampleTest do
# The tests here verify that CheckCounterExamplesTest did indeed not store
# any counter examples.
use ExUnit.Case
use PropCheck, default_opts: &PropCheck.TestHelpers.config/0

@moduletag manual: true

Expand Down
8 changes: 7 additions & 1 deletion test/verify_storing_counterexamples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
# Verify that we can configure storing counterexamples
#

mix test --include manual test/store_counter_examples_test.exs --include will_fail:true && exit 1
out=$(mix test --include manual test/store_counter_examples_test.exs --include will_fail:true)
if [ $? -eq 0 ]; then
echo "$out" | cat
echo Test succeeded but should fail
exit 1
fi

mix test --include manual test/verify_counter_examples_test.exs

0 comments on commit e17fb88

Please sign in to comment.