[arquillian-issues] [JBoss JIRA] Issue Comment Edited: (ARQ-50) research an alternative approach to inheriting from Arquillian base class in TestNG

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Tue Sep 7 11:14:52 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12549449#action_12549449 ] 

Aslak Knutsen edited comment on ARQ-50 at 9/7/10 11:14 AM:
-----------------------------------------------------------

After chatting with Cédric, TestNG will be adding the following new Listener interfaces.

IConfigurable (callback to veto BeforeClass/AfterClass/Before/After methods)
IHookable (Listener v. of of Test execution hook)

TestNG Beta can be found at: http://testng.org/betas

With this we should be able to create

@Listeners(Arquillian.class)
public class MyTest {}



      was (Author: aslak):
    After chatting with Cédric, TestNG will be adding the following new Listener interfaces.

IConfigurable (callback to veto BeforeClass/AfterClass/Before/After methods)
IHookable (Listener v. of of Test execution hook)

TestNG Beta can be found at: http://testng.org/beta
  
> research an alternative approach to inheriting from Arquillian base class in TestNG
> -----------------------------------------------------------------------------------
>
>                 Key: ARQ-50
>                 URL: https://jira.jboss.org/browse/ARQ-50
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Test Harness Integration
>            Reporter: Dan Allen
>            Assignee: Aslak Knutsen
>            Priority: Minor
>             Fix For: 1.0.0.Beta1
>
>
> This issue is a research and development task to determine if there is an alternative approach that can be used, rather than inheriting from the Arquillian base class, to hook a TestNG test into the Arquillian functionality. JUnit offers a @RunWith annotation which is what the JUnit module uses. The closest hook TestNG seems to offer is the ITestListener interface. However, the question becomes, how does that map to the requirements:
> @BeforeSuite -> start container (~ ITestListener.onStart)
> @BeforeClass -> deploy (??)
> TestMethod/IHookable -> remote call (??)
> @AfterClass -> undeploy -> (??)
> @AfterSuite -> stop container -> (~ ITestListener.onFinish)
> There was discussion on this thread about supporting @RunWith in TestNG: http://markmail.org/message/fxm6bddk6wzqa4yp

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the arquillian-issues mailing list