added tests to list of default excluded directories and excluded scribblings from our build
This commit is contained in:
parent
83ec4099cc
commit
1e623869cb
|
@ -9,4 +9,4 @@ before_install:
|
||||||
script:
|
script:
|
||||||
- /usr/racket/bin/raco pkg install $TRAVIS_BUILD_DIR
|
- /usr/racket/bin/raco pkg install $TRAVIS_BUILD_DIR
|
||||||
- /usr/racket/bin/raco test $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
|
||||||
|
|
6
raco.rkt
6
raco.rkt
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
(define coverage-dir "coverage")
|
(define coverage-dir "coverage")
|
||||||
(define output-format "html")
|
(define output-format "html")
|
||||||
(define exclude-paths '("info.rkt"))
|
(define exclude-paths '("info.rkt" "tests"))
|
||||||
(define include-exts '())
|
(define include-exts '())
|
||||||
|
|
||||||
(define args
|
(define args
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
(verbose #t)]
|
(verbose #t)]
|
||||||
#:multi
|
#:multi
|
||||||
[("-e" "--exclude-from-output") t
|
[("-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))]
|
(set! exclude-paths (cons t exclude-paths))]
|
||||||
[("-i" "--include-extentions") f
|
[("-i" "--include-extentions") f
|
||||||
"include these extentions in files to cover."
|
"include these extentions in files to cover."
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(parameterize ([current-directory (build-path "/tests")])
|
(parameterize ([current-directory (build-path "/tests")])
|
||||||
(check-equal? (remove-excluded-paths
|
(check-equal? (remove-excluded-paths
|
||||||
(hash "/tests/tests/x.rkt" null
|
(hash "/tests/tests/x.rkt" null
|
||||||
"/tests/x/tests/x/x.rkt" null
|
"/tests/x/tests/x/x.rkt" null
|
||||||
"/tests/x.rkt" null)
|
"/tests/x.rkt" null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user