Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test coverage #14

Merged
merged 3 commits into from
Feb 15, 2014
Merged

Test coverage #14

merged 3 commits into from
Feb 15, 2014

Conversation

emiln
Copy link
Member

@emiln emiln commented Feb 15, 2014

Add test coverage using cloverage and coveralls.io.

I had to refactor existing tests so they now work with either lein midje or lein test. This made them slightly less pretty, but provides excellent support for many libraries assuming the use of the standard test library.

To improve our poor coverage slightly, I took the liberty of testing tip.core/-main as well.

The library of choice is `cloverage`. It seems quite nice.
By wrapping all tests in `deftest`, they work with both `lein midje` and `lein test`. This makes interoperability with cloverage much easier (and also means people expecting `lein test` to work will not be disappointed.)
This simply tests whether it runs without error. It does not address the quality of the output.

This is a good first step towards issue #13.
@emiln
Copy link
Member Author

emiln commented Feb 15, 2014

I will take the liberty of merging my own pull request in, as this is rather crucial to bringing the master branch back to a state where builds do not fail.

emiln added a commit that referenced this pull request Feb 15, 2014
Hopefully this brings `master` back on track.
@emiln emiln merged commit 16aed57 into master Feb 15, 2014
@emiln emiln deleted the feature/13-test-coverage branch February 15, 2014 22:56
@emiln emiln mentioned this pull request Feb 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant