Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3112

Filtered test task does not run tests that use the JUnit parameterized test runner

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12-rc-1

      Description

      Using Gradle 2.0-rc-1. JUnit 4.11

      `gradle test` runs all of my tests out of the box. I add this to 'build.gradle' to differentiate unit tests:
      ```
      test {
      filter {
      includeTestsMatching "test.*"
      }
      }
      ```
      Then, any test annotated with `@RunWith(Parameterized.class)` is not included in the test run. Non-annotated tests run fine.

      No error is displayed so it looks as if all tests have passed. But the test report and artifacts indicate clearly that none of those tests have been run.

        Attachments

          Activity

            People

            • Assignee:
              pepper Pepper Lebeck-Jobe
              Reporter:
              forums Gradle Forums
            • Votes:
              13 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: