[racket] Test suite coverage color highlighting

From: John Clements (clements at brinckerhoff.org)
Date: Thu Feb 20 15:51:17 EST 2014

On Feb 13, 2014, at 12:47 PM, Mikko Tiihonen <mikko.tiihonen at tmtiihonen.fi> wrote:

> Hi,
> 
> I have been experimenting with rackunit and syntactic test suite coverage, and I have discovered that function bodies are always highlighted in red when using tests in separate test files. However, moving the tests to the same file with the code to be tested corrects this problem.
> 
> I checked the documentation and couldn't find anything forbidding the use of separate test files with syntactic test suite coverage. Is this behavior a bug or a feature? I would rather have the unit tests in separate files, if possible.

There’s a PLaneT package that solves this problem, written by a few years ago by a student of mine, Jonathan Walsh. It’s called… code-coverage. It generalizes syntactic test suite coverage to apply to multiple files. I haven’t used it lately. Let me know if it helps with your problem!

John Clements

> 
> Best,
> 
> Mikko T.
> 
> 
> 
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users



Posted on the users mailing list.