From 1e623869cbf9c45289531b07ebc77ada1637181e Mon Sep 17 00:00:00 2001 From: Ryan Plessner Date: Wed, 7 Jan 2015 10:08:20 -0500 Subject: [PATCH] added tests to list of default excluded directories and excluded scribblings from our build --- .travis.yml | 2 +- raco.rkt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 34eaffd..b10099e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ before_install: script: - /usr/racket/bin/raco pkg install $TRAVIS_BUILD_DIR - /usr/racket/bin/raco test $TRAVIS_BUILD_DIR - - /usr/racket/bin/raco cover -c coveralls -d $TRAVIS_BUILD_DIR/coverage $TRAVIS_BUILD_DIR + - /usr/racket/bin/raco cover -c coveralls -d $TRAVIS_BUILD_DIR/coverage -e scribblings $TRAVIS_BUILD_DIR diff --git a/raco.rkt b/raco.rkt index 9d793b1..1333dfd 100644 --- a/raco.rkt +++ b/raco.rkt @@ -7,7 +7,7 @@ (define coverage-dir "coverage") (define output-format "html") - (define exclude-paths '("info.rkt")) + (define exclude-paths '("info.rkt" "tests")) (define include-exts '()) (define args @@ -25,7 +25,7 @@ (verbose #t)] #:multi [("-e" "--exclude-from-output") t - "exclude all paths named this from the coverage report. By default excludes paths named tests" + "exclude all paths named this from the coverage report. By default excludes info.rkt and the tests directory" (set! exclude-paths (cons t exclude-paths))] [("-i" "--include-extentions") f "include these extentions in files to cover." @@ -88,7 +88,7 @@ (module+ test (parameterize ([current-directory (build-path "/tests")]) - (check-equal? (remove-excluded-paths + (check-equal? (remove-excluded-paths (hash "/tests/tests/x.rkt" null "/tests/x/tests/x/x.rkt" null "/tests/x.rkt" null)