added tests to list of default excluded directories and excluded scribblings from our build

This commit is contained in:
Ryan Plessner 2015-01-07 10:08:20 -05:00
parent 83ec4099cc
commit 1e623869cb
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)