From 6aae9b70f871dd46ad5dfe2a08990019a8cada5a Mon Sep 17 00:00:00 2001 From: Ryan Plessner Date: Mon, 12 Jan 2015 10:28:09 -0500 Subject: [PATCH] changed the -c flag to -f --- .travis.yml | 2 +- README.md | 4 ++-- raco.rkt | 2 +- scribblings/basics.scrbl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 69812ba..ff05cc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 657b2fc..f57271c 100644 --- a/README.md +++ b/README.md @@ -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 ` flag. +Code coverage can be generated by specifying the `-f ` 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. diff --git a/raco.rkt b/raco.rkt index 9315196..7dada0a 100644 --- a/raco.rkt +++ b/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") diff --git a/scribblings/basics.scrbl b/scribblings/basics.scrbl index e5109c1..ac4384d 100644 --- a/scribblings/basics.scrbl +++ b/scribblings/basics.scrbl @@ -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.}