Files
deb-python-gabbi/test-limit.sh
Chris Dent 1acaa8d611 Add a limit tox target
The limit tox target confirms that interception still works when
limiting the tests that will be run.
2015-02-02 21:35:40 +00:00

14 lines
491 B
Bash
Executable File

#!/bin/bash
# Run a test which is limited to just one request from a file that
# contains many requests and confirm that only one was run and that
# it did actually run.
#
# This covers a situation where the change of intercepts to fixtures
# broke limiting tests and we never knew.
GREP_MATCH='gabbi.driver.test_intercept_self_checklimit.test_request ... ok'
python setup.py testr --testr-args="checklimit" && \
testr last --subunit | subunit2pyunit 2>&1 | \
grep "${GREP_MATCH}"