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

Run tests on different containers, stopping and starting them between tests (with automatic grouping).

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.0.CR5
    • None
    • None

      Tests would have @ContainerInstance("InstanceName").

      As Arquillian would run these tests, it would stop the currently running container and start the other one.

      @TestCase @ContainerInstance("InstanceFoo")
      class TestsToBeRunOnFooTestCase { ... }
      
      @TestCase @ContainerInstance("InstanceBar")
      class TestsToBeRunOnBarTestCase { ... }
      
      @TestCase @ContainerInstance("InstanceFoo")
      class TestsToBeRunOnFoo2TestCase { ... }
      

      With this setup, Arq would:

      • start InstanceFoo
        • run TestsToBeRunOnFooTestCase
        • run TestsToBeRunOnFoo2TestCase
      • stop InstanceFoo
      • start InstanceBar
        • run TestsToBeRunOnBarTestCase
      • stop InstanceBar

      To optimize a bit, Arquillian could order the test to group them by instance name.

            aslak@redhat.com Aslak Knutsen
            ozizka_jira Ondrej Zizka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: