Hi is there a way to have a resource prepared before some targets and clean up afterwards ?
the use case is our integration tests. Before each suite we start progammatically a docker and stop it afterwards. It take ages. A quick win would be to use one docker for all suite. However we would like to have it drove by pants. I can see how to do a start before all :
have a task inheriting from junit_test requiring an artifact provided by the task that start the docker. but how to stop it at the end ? we cannot use the same trick because if tests fails, the docker won't be stopped …
07/17/2019, 4:28 AM
Interesting you mention this .. I’ve been wanting to raise this for a while.
There is a