Commit Graph

4 Commits

Author SHA1 Message Date
Katarina Strenkova 433dbdc4b9 Add unit tests to increase coverage
This patch proposes adding several new unit tests in effort to increase
the total unit test coverage.

Additionally, the ./tempest/serial_tests/ directory is not included in
coverage calculation. The reason being we don't want to test tests with
unit tests, which becomes a bit of an overkill.

Finally, there is an addition of a new option for the coverage program
called --fail-under. It will result the program in failure if the
coverage is under set percentage. Reason for this implementation is to
encourage writing unit tests for new code.

Change-Id: I804116413cd7d73cd7e5ae71409a8855ef937b88
2023-10-04 13:14:24 +00:00
Jordan Pittier 482e3ce6ab Remove the NegativeAutoTest Framework
Since it's not really used and a bit complex. It was only used
for negative compute flavor tests, and I think we can live easily
without these tests.

Change-Id: Iab676ae9bf95ee858c5e748c9579f7778e87bd77
2016-10-13 10:32:53 +02:00
Masayuki Igawa 99a6eb47d0 Add omit files for coverage
This commit adds omit files for coverage. In tempest, we can get
coverage of its unit tests. But we don't need the coverage of api tests,
scenario tests and api_schema. Because we don't need to have their unit
tests.

Depends-on: I6a1e7a411a4b27fa0f9bd533276d5cb4d4759976
Change-Id: I91931a68485f03b88872a2f1f860cf8da2f28eb5
2016-01-20 15:33:47 +09:00
Masayuki Igawa 3bb58e60fb Introduce .coveragerc
We don't need the result of tempest/tests/* and tempest/openstack/*
coverage. This commit omits it with introducing .coveragerc.

Partially implements bp unit-tests

Change-Id: I0465d916e195e3d340dece24ac7b01a0fc13e5c1
2014-03-28 08:16:22 +09:00