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

Implement boolean expression to define test group to be run.

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment