Browse Source

Merge pull request #3 from strider/master

Add missing stuffs for pytesting with tox
changes/53/712253/1
mathieu bultel 2 years ago
committed by GitHub
parent
commit
7cb6db10b9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .coveragerc
  2. 7
      .testr.conf
  3. 10
      test-requirements.txt

7
.coveragerc

@ -0,0 +1,7 @@
[run]
branch = True
source = validations-libs
omit = validations-libs/openstack/*
[report]
ignore_errors = True

7
.testr.conf

@ -0,0 +1,7 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

10
test-requirements.txt

@ -2,5 +2,15 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
openstackdocstheme>=1.20.0 # Apache-2.0
hacking<0.12,>=0.11.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD
sphinx>=1.8.0,<2.0.0;python_version=='2.7' # BSD
sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
reno>=2.5.0 # Apache-2.0
pre-commit # MIT
Loading…
Cancel
Save