From 4c39223497d51066785a87e3a5ceba85ef1ecd4a Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 23 Mar 2020 12:19:37 +0200 Subject: [PATCH] tests: Add coverage notes and link to Coveralls in docs also updates the path to the resulting RPMs b/c that seems to have chagned. --- test/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/README.md b/test/README.md index c1882ced9..9398e45f6 100644 --- a/test/README.md +++ b/test/README.md @@ -37,6 +37,15 @@ panics and nil pointer memory problems. Stand-alone test binaries also have the `-test.failfast` option. +## Notes on code coverage + +Code coverage is recorded in +[Coveralls.io](https://coveralls.io/github/osbuild/osbuild-composer). +This information comes only from unit tests and for the time being +we're not concerned with collecting coverage information from integration +tests, see `.github/workflows/coverage.yml`. + + ## Integration testing This will consume the osbuild-composer API surface via the `composer-cli` @@ -48,7 +57,7 @@ checkout is: * `dnf -y install rpm-build` * `dnf -y builddep golang-github-osbuild-composer.spec` * `make rpm` to build the software under test -* `dnf install output/x86_64/golang-github-osbuild-composer-*.rpm` - this will +* `dnf install rpmbuild/RPMS/x86_64/golang-github-osbuild-composer-*.rpm` - this will install both osbuild-composer, its -debuginfo, -debugsource and -tests packages * `systemctl start osbuild-composer` * `/usr/libexec/tests/osbuild-composer/osbuild-tests` to execute the test suite.