summaryrefslogtreecommitdiff
path: root/test/rebar_cover_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1679 from ferd/min-coverageFred Hebert2017-12-041-2/+48
|\ | | | | Support minimal coverage validation in tests
| * Support minimal coverage validation in testsFred Hebert2017-12-021-2/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an option (-m, --min_coverage, or {cover_opts, {min_coverage,X}}) to the 'cover' command, where the value is an integer between 0 and 100. If the total coverage during the analysis is below the value received, the command will fail with output like: ===> Requiring 64% coverage to pass. Only 62% obtained If the rate is correct, the command silently passes as it currently does. This feature allows to enforce code coverage standards in a project if desired.
* | add eunit and ct option to set coverdata file nameTristan Sloughter2017-12-041-0/+17
|/
* Allow exclusion of apps in coverDrew Varner2017-01-301-6/+13
| | | | | Adds a new option `{cover_excl_apps, Apps}` to exclude apps from coverage analysis by name.
* r15 proof cover tests``alisdair sullivan2016-08-271-1/+2
|
* use `cover:analyse(cover:modules())` for tests instead of `cover:analyse()`alisdair sullivan2016-08-271-1/+1
| | | | `cover:analyse/0` didn't exist pre-otp18
* reset accumulated coverdata on writing out to disk. this preventsalisdair sullivan2016-08-271-2/+19
| | | | | provider chains like `eunit, ct, proper` from misreporting cover stats from providers later in the sequence
* Add test suite for cover_excl_mods optionFred Hebert2016-08-271-2/+28
|
* don't generated coverage for `extra_src_dirs`alisdair sullivan2016-05-151-4/+4
| | | | closes #1057 and #1179
* fixes for cover under new compiler/eunit/ctalisdair sullivan2015-11-011-6/+19
| | | | | | * only try to cover compile directories that actually exist * recover from failures where source files don't contain required attributes for cover compilation and print warning
* refactor `rebar_erlc_compiler`alisdair sullivan2015-10-261-0/+87
| | | | | | | | | | | | | | | | | | | * modify compiler interface to work on either application objects or directories containing source files * compile all sources in `src_dirs` to the application `ebin` dir and all sources in `extra_src_dirs` to a directory mirroring it's position in the app's `_build` directory. for example, `apps/foo/more` would compile to `_build/default/lib/foo/more` for `extra_src_dirs` in the root of a project with multiple applications (so orphan directories that don't "belong" to an application) compile to `_build/default/extras/more` * copy directories specified in `extra_src_dirs` into the `_build` directory so tools like `ct` and `xref` that expect source to be in a particular location still work * clean compiled artifacts from all `extra_src_dirs` * alter `eunit`, `ct` and `cover` to work with the new directory structure * billions of new tests
* remove `cover_print_enabled` and `cover_data_dir` config optionsalisdair sullivan2015-07-011-20/+1
| | | | and replace with `cover_opts`
* execute `cover` task as `test` profile and write generated dataalisdair sullivan2015-03-251-11/+11
| | | | to the appropriate `_build` dir
* rename `_logs` and `_cover` dirs to `logs` and `cover`, respectivelyalisdair sullivan2015-03-031-5/+5
|
* move `_logs` and `_cover` to `_build` diralisdair sullivan2015-03-031-5/+5
|
* generate cover data (via the `{cover_enabled, true}` option inalisdair sullivan2015-03-031-0/+127
`rebar.config` or via the `-c\--cover` flag given to the appropriate task) from the `eunit` and `ct` tasks and add a `cover` task to write coverage analysis to disk