Commit Graph

6 Commits

Author SHA1 Message Date
Luigi Toscano 6f66893c2a Switch the coverage tox target to stestr
Use coverage+stestr for the cover tox target.
With this change, testrepository is not required anymore.

Change-Id: Ia294ee8003ccc10104f68777bea6921ff97bacef
2018-06-27 00:23:56 +02:00
Luigi Toscano e836a94cba Re-add .testr.conf, required by the cover test
The 'cover' tox target uses testr directly, so re-add .testr.conf
for it.

Change-Id: Ie5b3c59519d985565a7cb96c02102266873a8203
2017-09-14 06:34:56 +02:00
Shu Yingya be92ba367f [ut] replace .testr.conf with .stestr.conf
In Chaneg[1], os_testr switches the otestr command to use stestr
under the covers. So that we get warning:

ostestr.py:120:
 UserWarning: No .stestr.conf file found in the CWD.
 Please create one to to replace the .testr.conf. You can find a
 script to do this in the stestr git repository.

So remove the .testr.conf and add .stestr.conf which was generated
using a utility script as documented here[2]:

[1] Id7cb2a39a8308f1413608dcf19273a1d7f33592e
[2] https://media.readthedocs.org/pdf/stestr/stable/stestr.pdf

Change-Id: Ibc39d9c3fe33be91be158e7f6cd574736ed89440
2017-09-13 19:36:18 +08:00
Sergey Lukjanov 15d8281301 Group tests by class
It guarantees that all tests inside the test class will be executed in
sigle thread. It makes us able to group some tests that uses same
external resource into one tests execution thread to avoid races.
Example: tests that are use external MySQL/PostgreSQL.

Change-Id: I67f10d20ea84caa9335f909fb5f30da4b4e7f1ca
2014-08-04 14:59:13 +04:00
Nikita Konovalov 393d9ba42f Launch integration tests with testr
A new paramter introduced to separate unit and inegration test launch.
Since nosetests is not used anymore, it was removed from requirements.

Readme for integration tests updated.

Change-Id: I6415e2885cae8571c0adb75216d9b11c7372462a
Fixes: bug #1259927
2013-12-13 15:57:04 +04:00
Nikita Konovalov e2987a15ed Migrating to testr
Unit Tests and coverage will be launched using testr now.

Change-Id: Ib7397181de1137b94bb791cc532384c69679dcda
Fixes: bug #1259921
2013-12-11 19:40:34 +04:00