AntJUnitExecute.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
GRADLE-800 - Changed test execution so that Gradle has responsibility for forking test processes. - Temporarily ignore test options. - Switched on TestListeners for TestNG tests. - Gradle classes and classes under test are now isolated from each other in the forked test process. - Fixed a deadlock when worker process fails before it connects to the server, and after the server has started sending messages to the worker process.

  1. … 81 more files in changeset.
GRADLE-800 - Changed AntJUnitExecute and AntTestNGExecute to implements TestClassProcessor - Replaced TestFrameworkInstance.execute() with getProcessorFactory()

  1. … 15 more files in changeset.
GRADLE-800 - Extracted (public) ProcessForkOptions and JavaForkOptions interfaces out of (internal) ExecHandleBuilder and JavaExecHandlerBuilder.

  1. … 27 more files in changeset.
GRADLE-800 - Changed AntTest task to always use a forked test process - Removed JUnitOptions.forkMode, fork and reloading properties - Added AbstractTestTask.forkEvery property to replace ForkMode.PER_TEST. Specifies the number of test classes to execute per test process.

  1. … 26 more files in changeset.
GRADLE-800 - Generalised remote listener code to handle bi-directional messages, and to support more than one type of message target - Moved some classes from o.g.listener.dispatch to o.g.messaging.dispatch

  1. … 79 more files in changeset.
GRADLE-800 - Generalised remote listener code to handle bi-directional messages, and to support more than one type of message target - Moved some classes from o.g.listener.dispatch to o.g.messaging.dispatch

  1. … 79 more files in changeset.
GRADLE-800 - Switched on TestListener support again.

  1. … 1 more file in changeset.
GRADLE-800 - Temporarily disabled TestListener integration, to rework the classloading in forked process.

  1. … 1 more file in changeset.
- Split apart runtime and plugin classpaths. - Added DependencyHandler.gradleApi() to allow a dependency on the Gradle API to be declared. - Replaced static BootstrapUtil with ClassPathRegistry and ClassLoaderFactory. - Use groovy-all.jar to get rid of potential conflicts on asm, commons-cli and antlr.

  1. … 60 more files in changeset.
Some test listener changes - Added AbstractTestTask.beforeTest() and afterTest() which take closures - Renamed methods of TestListener to better fit with other listener interfaces - Ensure all test events are flushed to the server before test process exits - Handle project which uses junit 3

  1. … 27 more files in changeset.
Added some debug logging.

  1. … 1 more file in changeset.
Patch from John Murph. Added the ability for scripts to register a listener for test execution feedback. This currently works for JUnit. However, TestNG support is disabled (although I had it working, so it's mostly correct). This is due to a desire to not make Gradle have compile time dependencies on TestNG as that limits the versions of TestNG that can be used by projects.

  1. … 18 more files in changeset.
- Moved the test stuff from gradle-core to gradle-plugins, to live with the other java stuff.

    • -0
    • +78
    ./AntJUnitExecute.groovy
  1. … 410 more files in changeset.