Uploaded image for project: 'Poulpe'
  1. Poulpe
  2. POULPE-253

Separate integration and unit test runs

VotersWatchers
    XMLWordPrintable

    Details

      Description

      Right now we have all tests running all the time while starting mvn test. Since DAO tests are included in this run, they dramatically slow the build cycle down. We need to have a command line argument whether to run DAO tests or not and while running mvn test the DAO tests shouldn't be triggered. Instead they should run only when we tell it to run.
      To achieve this we can leverage TestNG Suits and/or Groups facilities. There should be two options: run all tests and run only unit tests (by default). We need to investigate what way is less verbose and choose it. The difference while running tests should be in a command line argument, something like this:

      • mvn install for unit tests vs. mvn install -Dgroups=unit,dao for all tests
      • mvn install for unit tests vs. mvn install -Dsuitename=all for all tests

      Acceptance criteria of this task:

      1. Results of research are provided: several ways of configuring TestNG/Maven in order to separate tests. Use comments to this JIRA to share your research results.
      2. Everything is configured and while running mvn install only unit tests are executed and while running mvn install -someparam all the tests can be fired.

      Links that might be useful:

      To sum up:
      We need to find a way to separate the integration and unit tests. The way should be as simple as possible so that we don't need to mark all tests as 'unit' for instance.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                dim42 dim42
                Reporter:
                ctapobep Stanislav Bashkyrtsev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0h
                  0h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 7h
                  7h

                    Structure Helper Panel