Skip to content

Commit

Permalink
Don't test tozier's problems, breaks coverage
Browse files Browse the repository at this point in the history
If we test these files, they import his problem files which breaks
running test coverage
(https://travis-ci.org/lspector/Clojush/builds/98748412#L496).

We also can't just ignore them, because the cloverage arguments
for filtering tests don't seem to be working
(cloverage/cloverage#91).
  • Loading branch information
saulshanabrook committed Dec 25, 2015
1 parent e605b7f commit bdf0531
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/coveralls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 6,14 @@ set -o nounset
set -o xtrace
set -o pipefail

# don't run problem tests with coverage, because they break it with
# duplicate instruction problems
PROBLEM_TESTS=test/clojush/midje/problems/
TMP_DIR=tmp_ignore/
mv $PROBLEM_TESTS $TMP_DIR

COVERALLS_URL='https://coveralls.io/api/v1/jobs'
lein cloverage -o cov --coveralls --ns-exclude-regex '^clojush[.]problems.*'
curl -F 'json_file=@cov/coveralls.json' "$COVERALLS_URL"

mv $TMP_DIR $PROBLEM_TESTS

0 comments on commit bdf0531

Please sign in to comment.