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

chore(python): simplify nox steps in CONTRIBUTING.rst #1135

Merged
merged 3 commits into from
Jun 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions synthtool/gcp/templates/python_library/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,9 @@ Using ``nox``
We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.

- To test your changes, run unit tests with ``nox``::
{% for v in unit_test_python_versions %}
$ nox -s unit-{{ v }}
{%- endfor %}
$ nox -s unit

- Args to pytest can be passed through the nox command separated by a `--`. For
example, to run a single test::
- To run a single unit test::

$ nox -s unit-{{ unit_test_python_versions | last }} -- -k <name of test>

Expand Down Expand Up @@ -148,9 +145,7 @@ Running System Tests
- To run system tests, you can execute::

# Run all system tests
{%- for system_test_version in system_test_python_versions %}
$ nox -s system-{{ system_test_version }}
{%- endfor %}
$ nox -s system

# Run a single system test
$ nox -s system-{{ system_test_python_versions | last}} -- -k <name of test>
Expand Down