testing-junit-platform

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix executing Specs tests via JUnit Platform and Vintage engine

Prior to this commit, the JUnitPlatformTestExecutionListener parsed the

unique ID to determine the class and method name for TestIdentifiers

without children but with a ClassSource. This occurs when a Spock test

class uses `@Unroll` on all its test methods. However, other testing

frameworks such as Specs2 don't provide a unique ID that is parseable

which lead to the methodName being null which cause a failure during

serialization. The effect was that tests hung because the build VM

was waiting for the worker to finish the tests it started.

The Spock-specific workaround in our listener is now replaced with a

more robust one that always uses the methodName provided by the JUnit

Platform instead of parsing it.

  1. … 1 more file in changeset.
Fix executing Specs tests via JUnit Platform and Vintage engine

Prior to this commit, the JUnitPlatformTestExecutionListener parsed the

unique ID to determine the class and method name for TestIdentifiers

without children but with a ClassSource. This occurs when a Spock test

class uses `@Unroll` on all its test methods. However, other testing

frameworks such as Specs2 don't provide a unique ID that is parseable

which lead to the methodName being null which cause a failure during

serialization. The effect was that tests hung because the build VM

was waiting for the worker to finish the tests it started.

The Spock-specific workaround in our listener is now replaced with a

more robust one that always uses the methodName provided by the JUnit

Platform instead of parsing it.

  1. … 1 more file in changeset.
Change all subprojects to use 'implementation' dependencies

This includes:

- All projects now explicitly declare all dependencies to other

subprojects. This makes issues more visible, guards for accidental

addition of new dependencies, and leaks much less transitive

dependencies on the compile classpathes.

- All usages of 'runtime' to declare dependencies have been replaced

with 'runtimeOnly'

- All projects are now `java-library` (and declare this explicitly)

- Most remaining Groovy scripts are translated to Kotlin

- The old 'compile' and 'runtime' configurations are not

configured/created anymore for the 'testFixture' and 'integTest'

source sets.

- Some obsolete dependencies (see previous commits) are removed

- 'api' is used scarcely on purpose as the current project structure is

not well designed for this. The projects contain code for several

concerns of the build tool and thus putting complete projects on the

API of others exposes too much. They should be split up along

functional concerns first.

    • -0
    • +36
    ./testing-junit-platform.gradle.kts
  1. … 111 more files in changeset.
Change few private methods to static

  1. … 251 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 890 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 897 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Use 'implementation' dependencies everywhere

    • -0
    • +36
    ./testing-junit-platform.gradle.kts
  1. … 285 more files in changeset.
Use 'implementation' dependencies everywhere

    • -0
    • +36
    ./testing-junit-platform.gradle.kts
  1. … 282 more files in changeset.
Use 'implementation' dependencies everywhere

    • -0
    • +36
    ./testing-junit-platform.gradle.kts
  1. … 285 more files in changeset.
Use 'implementation' dependencies everywhere

    • -0
    • +36
    ./testing-junit-platform.gradle.kts
  1. … 283 more files in changeset.
Use 'implementation' dependencies everywhere

    • -0
    • +36
    ./testing-junit-platform.gradle.kts
  1. … 284 more files in changeset.
Use 'implementation' dependencies everywhere

    • -0
    • +36
    ./testing-junit-platform.gradle.kts
  1. … 284 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types (#9447)

  1. … 28 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types (#9447)

  1. … 28 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 21 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 21 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 21 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 21 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 21 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 21 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 28 more files in changeset.
Make more subprojects use Java 8 and remove redundant module types

  1. … 21 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.
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. … 4 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.
Remove race condition