crystal-coverage-example

This is an example repo for testing https://github.com/anykeyh/crystal-coverage (in particular for testing my fork at https://github.com/drhuffman12/crystal-coverage).

crystal-coverage-example

This is an example repo for testing https://github.com/anykeyh/crystal-coverage (in particular for testing my fork at https://github.com/drhuffman12/crystal-coverage).

Basic idea

  1. Add the dependency to your shard.yml:
  development_dependencies:
    coverage:
      github: anykeyh/crystal-coverage
  1. Add your code with tests.

  2. Check coverage by running bin/crystal-coverage --min-cov=90 (or something like that).

Installation and usage (for this repo)

  1. Clone repo.
  2. Run shards install
  3. Run coverage (and specs) with specified minimum coverage percentage of 90 (or as desired) via
  • my hacky bash wrapper script: .github/workflows/coverage.sh 90
  • TODO (w/out my hacky bash wrapper script): bin/crystal-coverage --min-cov=90 (or something like that)

## Development

TODO: Write development instructions here

## Contributing

1. Fork it (<https://github.com/drhuffman12/crystal-coverage-example/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

## Contributors

- [Daniel Huffman](https://github.com/drhuffman12) - creator and maintainer
Repository

crystal-coverage-example

Owner
Statistic
  • 0
  • 0
  • 1
  • 0
  • 1
  • about 3 years ago
  • June 14, 2021
License

MIT License

Links
Synced at

Thu, 21 Nov 2024 03:29:57 GMT

Languages