Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 872 more files in changeset.
Annotate integ tests failing with instant execution in various projects

after third round of CI feedback

much better, no more OOMEs, no more hung builds, no more console

replacement weirdness

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -4
    • +0
    ./JUnitPlatformLoggingIntegrationTest.groovy
  1. … 37 more files in changeset.
Annotate integ tests failing with instant execution in various projects

after second round of CI feedback

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +4
    ./JUnitPlatformLoggingIntegrationTest.groovy
  1. … 32 more files in changeset.
Annotate integ tests failing with instant execution in :testingJvm

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 34 more files in changeset.
Use display name in test logging

Test logging now logs the display name if it is available.

Fixes: #10983

Co-authored-by: Mark Nordhoff <mark.nordhoff@freenet.de>

    • -0
    • +101
    ./JUnitPlatformLoggingIntegrationTest.groovy
  1. … 5 more files in changeset.
Let testing-jvm tests not use deprecated configurations

    • -1
    • +1
    ./JUnitPlatformOnJdk7IntegrationTest.groovy
    • -1
    • +1
    ./JUnitPlatformTestFrameworkIntegrationTest.groovy
    • -1
    • +1
    ./JUnitPlatformUserGuideIntegrationTest.groovy
  1. … 72 more files in changeset.
Replace 'Matchers' with 'CoreMatchers'

So we do not require 'org.hamcrest:hamcrest-library' as additional

dependency anymore. Which was only available for most of the tests

because it leaked onto the test compile classpath.

    • -3
    • +3
    ./JUnitPlatformUserGuideIntegrationTest.groovy
  1. … 161 more files in changeset.
Fix handling of aborted containers with completed children

When a container `TestIdentifier` was reported as finished, we reported

all of its children as skipped, regardless whether they already had been

completed previously. Now, we only report unstarted children as skipped.

Resolves #8685.

  1. … 5 more files in changeset.
spelling: uninstantiable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Increase number of test classes executing in parallel

Polishing

  1. … 7 more files in changeset.
Add support for executing test classes in parallel via JUnit Platform

Fixes #6453.

    • -5
    • +53
    ./JUnitPlatformIntegrationTest.groovy
  1. … 12 more files in changeset.
Allow inner class pattern match an outer class (#6812)

This fixes #5763 .

In Gradle 4.7 we made a change https://github.com/gradle/gradle/pull/4597 which pre-excludes some classes if test pattern is provided. For example, if a test pattern `org.gradle.Foo.testMethod` is provided, we can definitely exclude `org.gradle.Bar` class. However, this introduced one issue: if test pattern `EnclosingClass$NestedClass.nestedTest` is provided, we exclude `EnclosingClass` - this prevents `JUnitPlatformClassProcessor` from discovering its inner class.

This PR fixes this issue by allowing `EnclosingClass` to match a `EnclosingClass$NestedClass` pattern.

    • -0
    • +60
    ./JUnitPlatformNestedPatternMatchingIntegrationTest.groovy
  1. … 2 more files in changeset.
Downgrade Opentest4j to fix JUnitPlatformTestFrameworkIntegrationTest

We'll need to upgrade to 1.1.1 once https://github.com/ota4j-team/opentest4j/issues/49 is fixed.

    • -3
    • +0
    ./JUnitPlatformTestFrameworkIntegrationTest.groovy
  1. … 1 more file in changeset.
Ignore JUnitPlatformTestFrameworkIntegrationTest for now

It seems that somehow the failure message is now swallowed for JUnit 5.

    • -0
    • +4
    ./JUnitPlatformTestFrameworkIntegrationTest.groovy
Fix test failures caused by adjustment of sample directory structure

Yesterday we adjusted some samples' directory structure, which resulted in several failures.

This commit fixes them.

    • -4
    • +4
    ./JUnitPlatformSampleIntegrationTest.groovy
  1. … 2 more files in changeset.
Use external repository mirrors in build (#6094)

We've been bitten by external repository fluctuation for a long time.

This PR makes most of tests use repository mirrors set up by ourselves

via init script and system property.

There're still some tests not switching to mirrors, which would be fixed

in follow-up commits.

    • -2
    • +2
    ./JUnitPlatformSampleIntegrationTest.groovy
  1. … 98 more files in changeset.
Add up-to-date checks for options specific to JUnit Platform

Issue: #4924

    • -6
    • +11
    ./JUnitPlatformIntegrationSpec.groovy
    • -0
    • +40
    ./JUnitPlatformIntegrationTest.groovy
  1. … 1 more file in changeset.
Add displayName and classDisplayName to TestDescriptor (#4425)

Add displayName and classDisplayName to TestDescriptor

This fixes https://github.com/gradle/gradle/issues/4424 and https://github.com/gradle/gradle/issues/4423

JUnit 5 introduces @DisplayName and dynamic tests, which allows users to

customize test case and test class' name. This should be taken into

account. This PR introduces `displayName` and `classDisplayName` which are

used for display. When rendering HTML reports, these two fields will be used.

    • -24
    • +26
    ./JUnitPlatformIntegrationTest.groovy
    • -5
    • +5
    ./JUnitPlatformSampleIntegrationTest.groovy
    • -51
    • +24
    ./JUnitPlatformUserGuideIntegrationTest.groovy
  1. … 31 more files in changeset.
Add test engine filter to documentation (#4598)

Add test engine filter to documentation

    • -2
    • +16
    ./JUnitPlatformSampleIntegrationTest.groovy
  1. … 10 more files in changeset.
Fix test failure on Java 9

Ignore test class only when it's a class inside @Nested class

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

Previously we only pass top-level classes to JUnit 5, which might cause

issues. This PR fixes this behaviour: only ignore classes inside @Nested

class.

    • -0
    • +38
    ./JUnitPlatformIntegrationTest.groovy
  1. … 3 more files in changeset.
Handle exceptions in JUnit 5 test engine initialization

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

Previously in Gradle, test execution are class-based, which means a "TestClassStart" event will

be emitted before all test cases and a "TestClassEnd" event will be emitted after all test cases

(no matter they're failed or successful). In JUnit 5, if an exception occurs before "TestClassStart"

event (e.g. exceptions in test engine initialization), some event assertions will be violated.

In this situation, this PR will emit corresponding "TestClassStart/TestClassEnd" event to make

Gradle test event infrastructure happy.

    • -0
    • +31
    ./JUnitPlatformIntegrationTest.groovy
  1. … 4 more files in changeset.
Added JUnitPlatformFailFastIntegrationTest (#4399)

* Added JUnitPlatformFailFastIntegrationTest

* Ensure JUnitPlatformFailFastIntegrationTest only runs with JDK 8 or later

    • -0
    • +41
    ./JUnitPlatformFailFastIntegrationTest.groovy
Ignore nested class in JUnit platform test

    • -1
    • +42
    ./JUnitPlatformIntegrationTest.groovy
    • -1
    • +12
    ./JUnitPlatformUserGuideIntegrationTest.groovy
  1. … 1 more file in changeset.
Support multiple version of Vintage/Jupiter in JUnitMultiVersion test

    • -2
    • +1
    ./JUnitPlatformOnJdk7IntegrationTest.groovy
    • -2
    • +1
    ./JUnitPlatformTestFrameworkIntegrationTest.groovy
    • -1
    • +1
    ./JUnitPlatformUserGuideIntegrationTest.groovy
  1. … 9 more files in changeset.
Polish PR on feedback

    • -1
    • +2
    ./JUnitPlatformSampleIntegrationTest.groovy
  1. … 9 more files in changeset.
Fix failed tests

    • -19
    • +6
    ./JUnitPlatformUserGuideIntegrationTest.groovy
  1. … 7 more files in changeset.
Normalize output when test case name contains parentheses

    • -0
    • +3
    ./JUnitPlatformSampleIntegrationTest.groovy
  1. … 14 more files in changeset.
Refine release note and userguide

    • -45
    • +0
    ./JUnitPlatformFilterIntegrationTest.groovy
    • -0
    • +74
    ./JUnitPlatformSampleIntegrationTest.groovy
    • -0
    • +3
    ./JUnitPlatformUserGuideIntegrationTest.groovy
  1. … 20 more files in changeset.