Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9546

Add a JUnit runner for executing parameterized tests suites

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6-RC1, 5.6
    • Component/s: Runtime, Tests
    • Tags:
    • Backlog priority:
      200
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      New JUnit4 runner: org.nuxeo.runtime.test.runner.ParameterizedSuite

      Show
      New JUnit4 runner: org.nuxeo.runtime.test.runner.ParameterizedSuite

      Description

      Running multiple tests (for instance as a testing suite) is a pain when the tests (ran with org.nuxeo.runtime.test.runner.FeaturesRunner) need to be ran multiple times with changing dynamic parameters.

      Using Guice, parameters can be set on org.nuxeo.runtime.test.runner.Features but those parameters are only static primitive types.
      For instance, org.nuxeo.ecm.core.test.MultiNuxeoCoreRunner is parameterized with org.nuxeo.ecm.core.test.annotations.RepositoryConfig but that mainly relies on conventions between constants and Nuxeo Runtime services. Also, org.nuxeo.ecm.core.test.MultiNuxeoCoreRunner is able to run a tests suite.
      Other solutions are sharing a static field between the runner and the tests.

      The wanted class is a generic runner for parameterized tests suites, like a mix of org.nuxeo.runtime.test.runner.FeaturesRunner, org.junit.runners.Suite and org.junit.runners.Parameterized.

        Attachments

          Activity

            People

            • Assignee:
              jcarsique Julien Carsique
              Reporter:
              jcarsique Julien Carsique
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified