JUnitCategoriesIntegrationSpec

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Let testing-jvm tests not use deprecated configurations

    • -1
    • +1
    ./reExecutesWhenPropertyIsChanged/build.gradle
    • -1
    • +1
    ./reportsUnloadableCategories/build.gradle
    • -1
    • +1
    ./supportsCategoriesAndNullTestClassDescription/build.gradle
    • -1
    • +1
    ./testTaskFailsIfCategoriesNotSupported/build.gradle
  1. … 73 more files in changeset.
Let testing-jvm tests not use deprecated configurations

    • -1
    • +1
    ./reExecutesWhenPropertyIsChanged/build.gradle
    • -1
    • +1
    ./reportsUnloadableCategories/build.gradle
    • -1
    • +1
    ./supportsCategoriesAndNullTestClassDescription/build.gradle
    • -1
    • +1
    ./testTaskFailsIfCategoriesNotSupported/build.gradle
  1. … 73 more files in changeset.
Let testing-jvm tests not use deprecated configurations

    • -1
    • +1
    ./reExecutesWhenPropertyIsChanged/build.gradle
    • -1
    • +1
    ./reportsUnloadableCategories/build.gradle
    • -1
    • +1
    ./supportsCategoriesAndNullTestClassDescription/build.gradle
    • -1
    • +1
    ./testTaskFailsIfCategoriesNotSupported/build.gradle
  1. … 73 more files in changeset.
Let testing-jvm tests not use deprecated configurations

    • -1
    • +1
    ./reExecutesWhenPropertyIsChanged/build.gradle
    • -1
    • +1
    ./reportsUnloadableCategories/build.gradle
    • -1
    • +1
    ./supportsCategoriesAndNullTestClassDescription/build.gradle
    • -1
    • +1
    ./testTaskFailsIfCategoriesNotSupported/build.gradle
  1. … 73 more files in changeset.
Add up-to-date checks for options specific to JUnit

Issue: #4924

    • -0
    • +25
    ./reExecutesWhenPropertyIsChanged/build.gradle
  1. … 3 more files in changeset.
Use same classloader when filtering @Categories in JUnit

This fixes https://github.com/gradle/gradle/issues/3189

Previously we load JUnit Categories with application classloader,

which might mismatch with actually classloader (e.g. Powermock)

and result in invalid categories configuration. This PR uses same

classloader with Runner when loading category classes to avoid

this issue.

  1. … 3 more files in changeset.
Smaller cleanups

    • -1
    • +0
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/DescriptionWithNullClassTest.java
  1. … 1 more file in changeset.
Updated CategoryFilter to prevent NPE with Cucumber and JUnit Categories (#1511)

    • -0
    • +31
    ./supportsCategoriesAndNullTestClassDescription/build.gradle
    • -0
    • +18
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/CategoryA.java
    • -0
    • +21
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/CustomRunner.java
    • -0
    • +27
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/DescriptionWithNullClassTest.java
  1. … 2 more files in changeset.
Smaller cleanups

    • -1
    • +0
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/DescriptionWithNullClassTest.java
  1. … 1 more file in changeset.
Tidy up

    • -2
    • +1
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/DescriptionWithNullClassTest.java
  1. … 1 more file in changeset.
Removed Cucumber dependency from integration test

    • -0
    • +31
    ./supportsCategoriesAndNullTestClassDescription/build.gradle
    • -0
    • +18
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/CategoryA.java
    • -0
    • +21
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/CustomRunner.java
    • -0
    • +28
    ./supportsCategoriesAndNullTestClassDescription/src/test/java/DescriptionWithNullClassTest.java
    • -33
    • +0
    ./supportsTestCategoriesAndCucumber/build.gradle
    • -36
    • +0
    ./supportsTestCategoriesAndCucumber/src/test/java/CucumberStepdefs.java
    • -22
    • +0
    ./supportsTestCategoriesAndCucumber/src/test/java/CucumberTest.java
  1. … 1 more file in changeset.
Updated CategoryFilter to prevent NPE with Cucumber and JUnit Categories

- NullPointerException was being thrown if JUnit Categories were used in

a project containing Cucumber tests.

- Ensure CategoryFilter does not call createSuiteDescription if the

description test class is null

- Added integration test to reproduce the error

    • -0
    • +33
    ./supportsTestCategoriesAndCucumber/build.gradle
    • -0
    • +18
    ./supportsTestCategoriesAndCucumber/src/test/java/CategoryA.java
    • -0
    • +36
    ./supportsTestCategoriesAndCucumber/src/test/java/CucumberStepdefs.java
    • -0
    • +22
    ./supportsTestCategoriesAndCucumber/src/test/java/CucumberTest.java
    • -0
    • +6
    ./supportsTestCategoriesAndCucumber/src/test/resources/categories.feature
  1. … 2 more files in changeset.
Moved integration tests to `testing-jvm`

Story: gradle/langos#103

Item: refactor-plugins

    • -0
    • +27
    ./reportsUnloadableCategories/build.gradle
    • -0
    • +16
    ./testTaskFailsIfCategoriesNotSupported/build.gradle
  1. … 378 more files in changeset.