Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move system test runner from bash to Python #1349

Merged

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Jan 6, 2016

Also re-tooling the run_module_tests method to be more useful from other directories (so that we could call it from the scripts/ subdirectory).

@dhermes dhermes added the testing label Jan 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 6, 2016
@dhermes
Copy link
Contributor Author

dhermes commented Jan 6, 2016

Towards #1123

@@ -23,12 +23,15 @@


_helpers.PROJECT = TESTS_PROJECT
CLIENT = bigquery.Client()

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Also using the re-purposed `run_module_tests` to get a basic
`scripts/attempt_system_tests.py` to perform all four tests
as is done in `scripts/run_system_tests.sh`.
Achieved by updating `scripts/attempt_system_tests.py` to
support Travis, including decrypting a key in a subprocess.
In a set-up where the tests are not intended to be run (e.g. a
PR build for Travis), just importing these modules caused
errors due to lack of implicit variables being set.

So, all configuration done at import time was moved into `setUpClass`
if there was only one `TestCase` or moved to `setUpModule` with
some mutable global if there were multiple `TestCase`s.
@dhermes dhermes force-pushed the move-system-test-runner-to-python branch from e1f4a4b to d6c3b87 Compare January 7, 2016 23:14
@dhermes
Copy link
Contributor Author

dhermes commented Jan 7, 2016

@tseaver PTAL I added another commit to have all 4 system tests use Config.

@tseaver
Copy link
Contributor

tseaver commented Jan 7, 2016

LGTM

dhermes added a commit that referenced this pull request Jan 7, 2016
Move system test runner from bash to Python
@dhermes dhermes merged commit b5946a1 into googleapis:master Jan 7, 2016
@dhermes dhermes deleted the move-system-test-runner-to-python branch January 7, 2016 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants