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

Allow pre-test and post-test hooks to be used by plugins #272

Closed
pytoxbot opened this issue Sep 17, 2016 · 1 comment
Closed

Allow pre-test and post-test hooks to be used by plugins #272

pytoxbot opened this issue Sep 17, 2016 · 1 comment
Labels
area:plugins-hooks feature:new something does not exist yet, but should level:medium rought estimate that this might be neither easy nor hard to implement

Comments

@pytoxbot
Copy link

Rigth now the plugin system is kind of limited as it does not really allow to do that much.

Allowing some pre and post hooks will allow to create plugins that do actual stuff and can expand tox a lot.

real world scenario:
we run tests for an openstack dashboard on top of horizon dashboard.
we need to run a couple of docker containers to support the proper testing of our app
we want to run them locally and on jenkins
they need to be shut down automatically at the end of the tests

with tox there is no way of doing this and also DRY by sharing steps between testenvs.

By having a pre and post it would be able to create a tox-docker plugin that reads the tox config, set ups the proper containers, exposes the containers data trougth the setenvs and cleans them when the test start.

that is just an example, you coul also do the same with emails on failure, storing application logs for checking them afterwards and so on.

@obestwalter obestwalter changed the title Allo pre-test and post-test hooks so plugins con implement actual stuff Allow pre-test and post-test hooks to be used by plugins Nov 1, 2016
@obestwalter obestwalter added feature:new something does not exist yet, but should level:medium rought estimate that this might be neither easy nor hard to implement area:plugins-hooks and removed enhancement labels Sep 4, 2017
@gaborbernat
Copy link
Member

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:plugins-hooks feature:new something does not exist yet, but should level:medium rought estimate that this might be neither easy nor hard to implement
Projects
None yet
Development

No branches or pull requests

3 participants