-
Notifications
You must be signed in to change notification settings - Fork 124
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
RFE: test metadata (L1) setup and cleanup #825
Comments
@psss few examples for you: test: ./runtest.sh
summary: Test curl against
cleanup: ./stop_server.sh
/apache:
summary+: apache
setup: ./setup_apache.sh
/ngnix:
summary+: ngnix
setup:
- ./setup_ngnix.sh
- ./setup_usera.sh
cleanup+: remove_users.sh Pros:
Cons:
It may also contain more generic than just contain command to execute. link:
setup-by:
url: url://github/user/repo
ref: devel_branch
[id|filter]: /some/path/regexp or some filter of the test what will identify, that you have to run some test before this one and the mentioned test will work as setup test, and in case this setup test fails it does not make sense to run this test (with some good defaults, no Pros:
Cons:
Theoretically it will solves also plan of plans. Finally it may any plan may reference another plans, so that plan may reference plan what will reference another plan. e.g. link:
- implemented-by:
url: git://some/git/repo/component1
filter: tag:Tier1
- implemented-by:
url: git://some/git/repo/component2
id: /plans/tier1 Last question is if these |
This proposal may be interesting, especially if The exercise and verify steps are part of a script under the +1 for me
|
The tmt developers agreed to implemented the feature in the last discussion. Adding some notes from the meeting:
|
Hi, we've found that it would be very useful, that it would be nice to have something like
prepare
but for test metadata (L1)so that there is
test:
and I propose also to be able to declare alsosetup
andcleanup
to run before and after test.UserStory: I want to distinguish if preparation of environment for test failed.
test
itself, what is probably bad ideaplan
and then just not exectute test if preparation fails, but some of these preparation are more closer to tests than plans.prepare
will need somecleanup
counterpart inside plan definition. to do some steps in case something is more destructive than expected. Or in case this is not the case and plan of plans will just collect results into single point then it is not necessary. question is what is intended by plan of plans. if integration of more tests on one env, or just collect and report tests from various plans.link: {setup-by: /path/to/setup/test, cleanup-by: /cleanup/test}
but probably it then needs more clever logic inside to parse and optimise test execution order and differenciate test types, but it seems like very very flexible, but harder solution, applicable.link: [ {implemented-by: url//to/another/plan1}, {implemented-by: url//to/another/plan2}]
where url could be also some url and ref to indentify also git and proper commit hash or branch or tag.The text was updated successfully, but these errors were encountered: