Arquillian Governor 1.0.0.Alpha1 ReleasedPosted by +Štefan Miklošovič
Arquillian Governor Extension gives you the possibility to programmatically choose what test methods of your Arquillian tests are going to be executed and what are going to be skipped by putting your custom annotations on the test methods. The resolution of the test method execution is done during the test class execution in BeforeClass phase.
Currenly, there are two implementations which use API of the Arquillian Governor extension – Arquillian JIRA Governor extension and Arquillian Skipper extension.Arquillian Governor JIRA
JIRA extension enables you to skip some test mehods which are in Unresolved or Open state in your JIRA instance, because you assume that if you run that test it would fail. Once that JIRA is resolved as Done, that test method will not be skipped.
You can even close your JIRAs directly from test methods when you force the execution despite the fact it should be skipped. If this test method passes successfully, you can close related JIRA issue from test.Arquillian Governor Skipper
On the other hand, Arquillian Governor Skipper extension adds one annotation – TestSpec – which describes your test method in more details. This information is reported to Arquillian Reporter and it is seamlessly integrated to Arquillian testing reports hence you have betteroverview about the state of your test suite.
If status is set to Status.AUTOMATED, test method will be run, if it is Status.MANUAL, it will be skipped.
See release notes for examples and full details:http://arquillian.org/blog/2015/05/05/arquillian-governor-1-0-0-Alpha1/