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

Update to Crystal 1.0.0+ and better integrate with spec #18

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

lbguilherme
Copy link

This PR includes the following changes:

  1. Make it build and collect coverage with Crystal 1.0.0+;

  2. Add --help cli flag;

  3. When run without specifying filenames, use the spec files inside the spec directory, the same behavior as crystal spec. It can now be used simply as bin/crystal-coverage.

  4. Improve console output to better integrate with spec:

    $ ./bin/crystal-coverage
    ....
    Lines 81.93% covered
    
    Finished in 3.0 milliseconds
    4 examples, 0 failures, 0 errors, 0 pending
    
  5. Modify HTML output to show line data as a single column. This change is in preparation to also collect branch and function information.

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.

2 participants