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
My plugin tox-docker needs a way to run code before and after the testing part of each testenv.
Before each testenv runs, tox-docker will start appropriate docker containers based on configuration (see #2200 for more), and sets environment variables for the testenv to inform tests of the containers' IP and ports. After the test run, the containers are stopped and removed.
This could either mean bringing back tox_runtest_pre and tox_runtest_post, or adding tox_wrap_test which could act like a generator-context manager. For example:
@impl@contextmanagerdeftox_wrap_test(env: TestEnv):
# ... start docker containers ...try:
yield# tests run herefinally:
# ... clean up started containers ...
The text was updated successfully, but these errors were encountered:
My plugin tox-docker needs a way to run code before and after the testing part of each testenv.
Before each testenv runs, tox-docker will start appropriate docker containers based on configuration (see #2200 for more), and sets environment variables for the testenv to inform tests of the containers' IP and ports. After the test run, the containers are stopped and removed.
This could either mean bringing back
tox_runtest_pre
andtox_runtest_post
, or addingtox_wrap_test
which could act like a generator-context manager. For example:The text was updated successfully, but these errors were encountered: