JUnitIntegrationTest

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Moved integration tests to `testing-jvm`

Story: gradle/langos#103

Item: refactor-plugins

    • -21
    • +0
    ./canHaveMultipleTestTaskInstances/build.gradle
    • -2
    • +0
    ./canRunSingleTests/src/test/java/NotATest.java
    • -7
    • +0
    ./canRunSingleTests/src/test/java/Ok.java
    • -7
    • +0
    ./canRunSingleTests/src/test/java/Ok2.java
    • -25
    • +0
    ./canRunTestsUsingJUnit3/build.gradle
    • -8
    • +0
    ./createsRunnerBeforeTests/build.gradle
  1. … 367 more files in changeset.
Changed some more int tests to use junit 4.12

    • -1
    • +1
    ./canHaveMultipleTestTaskInstances/build.gradle
    • -1
    • +1
    ./createsRunnerBeforeTests/build.gradle
    • -1
    • +1
    ./executesTestsInCorrectEnvironment/build.gradle
    • -1
    • +1
    ./reportsAndBreaksBuildWhenTestFails/build.gradle
    • -1
    • +1
    ./testClassesCanBeSharedByMultipleSuites/build.gradle
  1. … 31 more files in changeset.
Shuffled some more test logging output capture tests around

    • -11
    • +0
    ./canHandleMultipleThreadsWritingToSystemErr/build.gradle
    • -11
    • +0
    ./canHandleMultipleThreadsWritingToSystemOut/build.gradle
  1. … 3 more files in changeset.
Split out some more coverage for junit test output capture, and synced up with coverage for testng.

  1. … 4 more files in changeset.
Extracted coverage for junit test output capture out to its own test class.

  1. … 2 more files in changeset.
GRADLE-3114 - don't eagerly load JUnit test classes.

  1. … 4 more files in changeset.
#279 Incorrect ClassLoader used to instantiate test class when using RunWith annotation.

Defer initialization of the class under test until the custom runner specified with @RunWith is initialized. This will allow the Runner to manipulate the class under test if so desired.

ex. Robolectric uses a custom ClassLoaders to provide “shadow” object of Android system classes for testing purposes.

    • -0
    • +8
    ./createsRunnerBeforeTests/build.gradle
  1. … 2 more files in changeset.
REVIEW-1962: add seperate crossversion integtest for dealing with class level ignore annotations in JUnit.

    • -27
    • +0
    ./canHandleClassLevelIgnoredTests/build.gradle
  1. … 5 more files in changeset.
REVIEW-1874 some repackaging/reorganizing of the JUnit related integrationtests; add covererage for JUnit samples in docs.

    • -0
    • +27
    ./canHandleClassLevelIgnoredTests/build.gradle
    • -27
    • +0
    ./canRunMixOfJunit3And4Tests/build.gradle
    • -16
    • +0
    ./emitsWarningIfCategoriesNotSupported/build.gradle
  1. … 78 more files in changeset.
deprecated `groovy` configuration

- log deprecation warning whenever a dependency is added to the configuration

- eliminated use of `groovy` configuration from all tests and samples

- adapted default build script for buildSrc

    • -2
    • +4
    ./canHandleMultipleThreadsWritingToSystemErr/build.gradle
    • -2
    • +4
    ./canHandleMultipleThreadsWritingToSystemOut/build.gradle
  1. … 28 more files in changeset.
Fix CI build - fix testclass lookup in HtmlTestExecutionResult - split test scoped ignored classes to extra package to support JUnit 4.0 in JUnitCrossVersionIntegTest

    • -0
    • +70
    ./ignoreTests/src/test/java/org/gradle/CustomIgnoredTest.java
    • -0
    • +12
    ./ignoreTests/src/test/java/org/gradle/IgnoredTest.java
  1. … 3 more files in changeset.
fix not working JUnitCrossVersionIntegrationSpec; some refactorings to the Junit related integration tests

    • -0
    • +27
    ./canRunMixOfJunit3And4Tests/build.gradle
    • -0
    • +25
    ./canRunTestsUsingJUnit3/build.gradle
    • -2
    • +6
    ./reportsAndBreaksBuildWhenTestFails/build.gradle
    • -0
    • +19
    ./supportsAssumptions/build.gradle
  1. … 2 more files in changeset.
GRADLE-2111: emit warning if used categories are configured, but not supported by selected junit version

    • -0
    • +16
    ./emitsWarningIfCategoriesNotSupported/build.gradle
  1. … 5 more files in changeset.
GRADLE-2111: Renamed 'groups' to 'categories'. Added integration test. Made CategoryFilter top-level class.

    • -0
    • +16
    ./supportsTestCategories/build.gradle
  1. … 7 more files in changeset.
GRADLE-2649: add coverage for junit3 testsuites with testsetup decorators.

    • -0
    • +26
    ./supportsJunit3Suites/build.gradle
  1. … 1 more file in changeset.
GRADLE-2649: fix our reporting of junit testsuites

    • -0
    • +7
    ./testClassesCanBeSharedByMultipleSuites/build.gradle
    • -0
    • +25
    ./testClassesCanBeSharedByMultipleSuites/src/test/java/org/gradle/SomeOtherTestSuite.java
    • -0
    • +24
    ./testClassesCanBeSharedByMultipleSuites/src/test/java/org/gradle/SomeTestSuite.java
  1. … 5 more files in changeset.
Merge pull request 114 (treat tests with assumption failures as skipped)

  1. … 4 more files in changeset.
Some more test coverage to junitintegrationtest.

    • -0
    • +22
    ./junit4Tests/src/test/java/org/gradle/NoTest.java
Add integration test coverage for JUnit assumption handling

  1. … 2 more files in changeset.
Extract JUnitCrossVersionIntegrationSpec from JUnitIntegrationTest - reuse sample test code fom JUnitIntegrationTest - test against junit 4.0, 4.4, 4.8.2 and 4.11

  1. … 3 more files in changeset.
GRADLE-2484 / Review-865: Calculate ignored tests dynamically reusing JUnit runner builder infrastructure; Add more coverage about ignored tests to JUnitIntegrationTest

    • -0
    • +71
    ./junit4Tests/src/test/java/org/gradle/CustomIgnoredTest.java
  1. … 4 more files in changeset.
REVIEW-862: map toString of original exception in PlaceholderException; add some more coverage to JunitIntegrationTest for broken exception handling

    • -0
    • +24
    ./reportsAndBreaksBuildWhenTestFails/src/test/java/org/gradle/UnserializableException.java
  1. … 9 more files in changeset.
update default library versions used in tests and samples

- JUnit -> 4.11

- Groovy -> 2.0.5

- Scala -> 2.9.2

- use short instead of long dependency notation

- eliminate usage of `scalaTools` configuration

    • -1
    • +1
    ./canHandleMultipleThreadsWritingToSystemErr/build.gradle
    • -1
    • +1
    ./canHandleMultipleThreadsWritingToSystemOut/build.gradle
    • -1
    • +1
    ./canHaveMultipleTestTaskInstances/build.gradle
    • -1
    • +1
    ./executesTestsInCorrectEnvironment/build.gradle
    • -1
    • +1
    ./reportsAndBreaksBuildWhenTestFails/build.gradle
  1. … 55 more files in changeset.
REVIEW-574, Refactored and increased coverage in JUnit/TestNG (non-ascii chars, output encoding, etc.)

  1. … 2 more files in changeset.
test fix

  1. … 1 more file in changeset.
Wait for threads to finish writing to stdout/stderr before finishing the test.

fixed package statement

fixed GRADLE-1513: Concurrency Bug With JUnit Test Listener

- replacing StringBuilder with StringBuffer seems to solve this problem reliably

    • -0
    • +9
    ./canHandleMultipleThreadsWritingToSystemErr/build.gradle
    • -0
    • +30
    ./canHandleMultipleThreadsWritingToSystemErr/src/test/groovy/org/gradle/SystemErrTest.groovy
    • -0
    • +9
    ./canHandleMultipleThreadsWritingToSystemOut/build.gradle
    • -0
    • +30
    ./canHandleMultipleThreadsWritingToSystemOut/src/test/groovy/org/gradle/SystemOutTest.groovy
  1. … 2 more files in changeset.
Gradle-1915 - use a reasonable name for the test execution thread.

  1. … 2 more files in changeset.
- Remove the bootstrap SecurityManager once it has done its thing, and replace with the requested SecurityManager, if any. - Added some int test coverage for this.

  1. … 7 more files in changeset.