Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-236

Configure the Container lifecycle based on the Test events

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.0.0.CR6
    • None
    • Base Implementation
    • None

    Description

      A user should be able to customize how he wants the Container to be controlled.

      The default behavior is:
      @BeforeSuite -> container.start()
      @BeforeClass -> container.deploy()
      @AfterClass -> container.undeploy()
      @AfterSuite -> container.stop()

      Other scenarios are:

      • Restart server pr test class
        @BeforeClass -> container.start()
        @BeforeClass -> container.deploy()
        @AfterClass -> container.undeploy()
        @AfterClass -> container.stop()
      • Redeploy pr test method
        @BeforeSuite -> container.start()
        @Before -> container.deploy()
        @After -> container.undeploy()
        @AfterSuite -> container.stop()
      • Restart pr test method
        @Before -> container.start()
        @Before -> container.deploy()
        @After -> container.undeploy()
        @After -> container.stop()

      This could be done by adding a Engine configuration option
      e.g.:
      engine/containerLifeCycle PrSuite|PrClass|PrMethod

      this option would map to different ContextAppenders in the background that does the setup/ordering.

      Attachments

        Issue Links

          Activity

            People

              mgencur Martin Gencur
              aslak@redhat.com Aslak Knutsen
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: