You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* /testing/resources have been moved to their respective samples.
* /testing/utils.py has been broken up into several files, many of which will be moved to gcp-python-repo-tools.
* Managed VMs tests have been re-written and enabled.
* /scripts/check_requirements.py and /scripts/update_requirements.txt have been removed in favor of gcp-python-repo tools.
* /lib has been removed, the tox environment for gae will just create it when needed.
* Switched to using manual encryption and a secrets.tar file so that we can store both the service account and the environment variables needed.
* Moved the testing section in CONTRIBUTING.md to its own file.
* Changed the way that environment variables are used in tests. See testing.cloud.config.
The tests in this repository are system tests and run against live services, therefore, it takes a bit of configuration to run all of the tests locally.
4
+
5
+
Before you can run tests locally you must have:
6
+
7
+
* The latest [tox](https://tox.readthedocs.org/en/latest/),
8
+
[pip](https://pypi.python.org/pypi/pip), and [gcp-python-repo-tools](https://pypi.python.org/pypi/gcp-python-repo-tools) installed.
$ export GAE_PYTHONPATH=<path your AppeEngine sdk>
50
+
51
+
### Test environments
52
+
53
+
We use [tox](https://tox.readthedocs.org/en/latest/) to configure
54
+
multiple python environments:
55
+
56
+
*``py27`` and ``py34`` contains tests for samples that run in a normal Python 2.7 pr 3.4 environment. This is everything outside of the ``appengine`` directory that isn't slow or flaky.
57
+
*``py27-all`` and ``py34-all`` runs all tests except for App Engine tests. This can time some time and some tests are flaky.
58
+
*``gae`` contains tests for samples that run only in Google App Engine. This is (mostly) everything in the ``appengine`` directory.
59
+
*``pep8`` just runs the linter.
60
+
61
+
To run tests for a particular environment, invoke tox with the ``-e``
62
+
flag:
63
+
64
+
tox -e py27
65
+
66
+
To run one particular test suite or provide additional parameters to
0 commit comments