[jboss-jira] [JBoss JIRA] (WFLY-1182) @RestoreASConfigAfterTest to make a snapshot before test and reload it after.
Miroslav Novak (JIRA)
issues at jboss.org
Mon Jul 14 03:06:29 EDT 2014
[ https://issues.jboss.org/browse/WFLY-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984555#comment-12984555 ]
Miroslav Novak commented on WFLY-1182:
--------------------------------------
It's better to do all clean ups before the test. There would be two annotation:
@RestoreASConfigBeforeTest - which would restore standalone-...xml to original state before test is run
@CleanASServerBeforeTest - which would delete "tmp", "log", "data" and "deployments" directories before test
Reason for this is that when we run a test which fails then we want to see what went wrong. See configuration, logs and possibly run the test manually with debugger. It's not possible to do this when all this is deleted after test.
> @RestoreASConfigAfterTest to make a snapshot before test and reload it after.
> -----------------------------------------------------------------------------
>
> Key: WFLY-1182
> URL: https://issues.jboss.org/browse/WFLY-1182
> Project: WildFly
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Test Suite
> Reporter: Ondrej Zizka
> Assignee: Aslak Knutsen
>
> Having a possibility to restore server configuration after the test is run, or similar principle, would be very cool.
> For example, there are some tests which change datasource config quite dramatically.
> And getting it back to the original state afterwards requires a lot of coding.
> So instead, the test would have {{@RestoreASConfigAfterTest}}
> and Arq would re-load a snapshot it made before the test was run.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list