changed the -c flag to -f
This commit is contained in:
parent
7a753a8f86
commit
6aae9b70f8
|
@ -10,4 +10,4 @@ install: /usr/racket/bin/raco pkg install $TRAVIS_BUILD_DIR
|
|||
|
||||
script:
|
||||
- /usr/racket/bin/raco test -Q $TRAVIS_BUILD_DIR
|
||||
- /usr/racket/bin/raco cover -c coveralls -d $TRAVIS_BUILD_DIR/coverage -p $TRAVIS_BUILD_DIR
|
||||
- /usr/racket/bin/raco cover -f coveralls -d $TRAVIS_BUILD_DIR/coverage -b $TRAVIS_BUILD_DIR
|
||||
|
|
|
@ -12,7 +12,7 @@ install via `raco pkg install cover`. To install for development, checkout the r
|
|||
|
||||
To view the arguments for Cover run `raco cover -h`.
|
||||
|
||||
Code coverage can be generated by specifying the `-c <format>` flag.
|
||||
Code coverage can be generated by specifying the `-f <format>` flag.
|
||||
Right now the valid formats are: `html` and `coveralls`.
|
||||
|
||||
`html` simply generates html files for each source file containing coverage information and
|
||||
|
@ -39,7 +39,7 @@ install: /usr/racket/bin/raco pkg install --deps search-auto $TRAVIS_BUILD_DIR #
|
|||
|
||||
script:
|
||||
- /usr/racket/bin/raco test $TRAVIS_BUILD_DIR # run tests. you wrote tests, right?
|
||||
- /usr/racket/bin/raco cover -c coveralls -d $TRAVIS_BUILD_DIR/coverage . # generate coverage information for coveralls
|
||||
- /usr/racket/bin/raco cover -f coveralls -d $TRAVIS_BUILD_DIR/coverage . # generate coverage information for coveralls
|
||||
```
|
||||
The above Travis configuration will install any project dependencies, test your project, and report coverage information to coveralls.
|
||||
|
||||
|
|
2
raco.rkt
2
raco.rkt
|
@ -26,7 +26,7 @@
|
|||
[("-d" "--directory") d
|
||||
"Specify output directory. Defaults to ./coverage."
|
||||
(set! coverage-dir d)]
|
||||
[("-c" "--coverage") format
|
||||
[("-f" "--format") format
|
||||
"Specify that coverage should be run and optional what format. Defaults to html."
|
||||
(set! output-format format)]
|
||||
[("-v" "--verbose")
|
||||
|
|
|
@ -10,7 +10,7 @@ exists). It will then dump the coverage information into a directory, by default
|
|||
|
||||
The @exec{raco cover} command accepts the following flags:
|
||||
|
||||
@itemize[@item{@Flag{c} or @DFlag{coverage}
|
||||
@itemize[@item{@Flag{f} or @DFlag{format}
|
||||
--- Sets the coverage output type. This flag defaults to html.
|
||||
valid formats are:
|
||||
@itemize[@item{html: Generates one html file per tested file.}
|
||||
|
|
Loading…
Reference in New Issue
Block a user