test-command-line-arguments (Issue #18)
This commit is contained in:
parent
cba00ee2ad
commit
2a61c5fb73
|
@ -61,7 +61,7 @@
|
|||
(define to-run (if (module-declared? submod) submod file))
|
||||
(vprintf "running ~s\n" to-run)
|
||||
(namespace-require to-run)
|
||||
(vprintf "finished running ~s" to-run))))
|
||||
(vprintf "finished running ~s\n" to-run))))
|
||||
(vprintf "ran ~s\n" paths)
|
||||
(not tests-failed)))
|
||||
|
||||
|
@ -131,7 +131,7 @@
|
|||
(filter values
|
||||
(for/list ([(stx covered?) (get-raw-coverage)])
|
||||
(and (syntax? stx)
|
||||
(let* ([orig-src (syntax-source stx)]
|
||||
(let* ([orig-src (syntax-source stx)]
|
||||
[src (if (path? orig-src) (path->string orig-src) orig-src)]
|
||||
[pos (syntax-position stx)]
|
||||
[span (syntax-span stx)])
|
||||
|
|
7
main.rkt
7
main.rkt
|
@ -6,8 +6,11 @@
|
|||
[coverage/c contract?]
|
||||
[file-coverage/c contract?]
|
||||
[test-files! (->* () (#:submod symbol?)
|
||||
#:rest (listof (or/c path-string?
|
||||
(list/c path-string? (vectorof string?))))
|
||||
#:rest (lisdtof path-string?)
|
||||
;; TODO when we figure out the contract issue we will change this
|
||||
#;
|
||||
(listof (or/c path-string?
|
||||
(list/c path-string? (vectorof string?))))
|
||||
any)]
|
||||
[clear-coverage! (-> any)]
|
||||
[get-test-coverage (-> coverage/c)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user