Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-809

Implement boolean expression to define test group to be run.

    XMLWordPrintableJSON

    Details

      Description

      This is an alternative to SUREFIRE-808.

      Instead of having hard-coded filtering structure combining two lists.
      an expression could be parsed and evaluated for each test.

      Each test would be "tagged" using

      @Categories({ MyCateg1.class, MyCateg2.class, ... })
      

      Surefire's `group` config param would be an expression like:

      <groups>( Ejb AND (CommonCriteria OR Security) ) AND NOT( Clustering )<groups>
      

      Presence of a category of given name would be evaluated as true, absence of it as false.
      Interface inheritance would be taken into account.

      This mechanism would provide unlimited possibilities of grouping tests, and would be very beneficial for huge testuites counting thousands of tests.

        Attachments

        1. BooleanExpression.g
          0.6 kB
          Ondra Žižka
        2. category-expression.jj
          3 kB
          John Casey

          Issue Links

            Activity

              People

              • Assignee:
                jdcasey John Casey
                Reporter:
                pekarna Ondra Žižka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: