diff options
author | Loïc Hoguin <[email protected]> | 2019-07-18 09:59:28 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-07-18 10:08:46 +0200 |
commit | 136d443b5c38bee96f5d995dfea3629ef07564c3 (patch) | |
tree | 1d31540baebc43ca0b2dceeda212c44f5da7e7a8 /docs/en/erlang.mk/1/guide/coverage.asciidoc | |
parent | e031713c0e8bd871248dbbbbdec1ea28609f4431 (diff) | |
download | ninenines.eu-136d443b5c38bee96f5d995dfea3629ef07564c3.tar.gz ninenines.eu-136d443b5c38bee96f5d995dfea3629ef07564c3.tar.bz2 ninenines.eu-136d443b5c38bee96f5d995dfea3629ef07564c3.zip |
Announce Ranch 2.0.0-rc.1
Adds Ranch 2.0 documentation and removes documentation for
very old Cowboy and Ranch, along with Erlang.mk documentation
which is available on its own website.
Diffstat (limited to 'docs/en/erlang.mk/1/guide/coverage.asciidoc')
-rw-r--r-- | docs/en/erlang.mk/1/guide/coverage.asciidoc | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/docs/en/erlang.mk/1/guide/coverage.asciidoc b/docs/en/erlang.mk/1/guide/coverage.asciidoc deleted file mode 100644 index 02f8b5b9..00000000 --- a/docs/en/erlang.mk/1/guide/coverage.asciidoc +++ /dev/null @@ -1,62 +0,0 @@ -[[coverage]] -== Code coverage - -Erlang.mk provides support for code coverage via the tool -`cover` that comes with Erlang/OTP. Code coverage lets you -see what parts of your code are covered by the tests. - -=== Enabling cover when running tests - -To run tests with code coverage enabled, simply define -`COVER=1` either on the command line or in your Makefile: - -[source,bash] -$ make tests COVER=1 - -When running the targets `tests` or `check` the code -coverage report will be built automatically. This is -not the case for test framework specific targets, -however. In those cases you can generate the reports -manually: - -[source,bash] -$ make eunit proper COVER=1 -$ make cover-report - -Note that Common Test has some support for `cover` -built-in and that it will generate code coverage -reports in the Common Test logs regardless. The -report that Erlang.mk generates is however common -to all test frameworks and might be more useful. - -=== Adding applications to the cover report - -By default Erlang.mk will include all the applications -in the code coverage report, except external dependencies. - -To include some dependencies in the report, you can -define the `COVER_DEPS` variable: - -[source,make] -COVER_DEPS = cowlib - -When using multi application repositories you can exclude -some applications by defining the `COVER_APPS` variable: - -[source,make] -COVER_APPS = presence backend - -=== Configuring paths - -By default Erlang.mk will store 'coverdata' files and -code coverage reports under the 'cover/' directory. The -variables `COVER_DATA_DIR` and `COVER_REPORT_DIR` can be -set to use a different location. - -=== Merging coverdata files - -The target `all.coverdata` will take all existing -'coverdata' files and merge them into one: - -[source,bash] -$ make all.coverdata |