I have 2 build configurations (there are more before and after them but they are not important for this issue):
- Test (including automatic client GUI tests)
- TestCleanup (which cleans up client specific data causes by the GUI test)
It is my aim to trigger TestCleanup automatically right after Test runs (even if Test failed). Test is triggered by time schedule but can also be triggered by hand. I can not run the cleanup just before starting Test. I must run it right after it.
I could set TestCleanup to be dependent on Test and schedule TestCleanup to run instead of Test but this would be confusing for our developers who just want to run the tests (and trigger it by hand). Furthermore this would conflict other dependencies. Is there a way to trigger TestCleanup right after Test has run?
Thanks in advance for any suggestions on it.