java_testing.adoc

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Organize user guide sources in folders

  1. … 173 more files in changeset.
Proper example in Groovy and Kotlin DSL for disabling publishing

  1. … 4 more files in changeset.
Proper example in Groovy and Kotlin DSL for disabling publishing

  1. … 4 more files in changeset.
Use instantiator for DSL objects created through SoftwareComponentFactory

To have a better and consistent DSL experience when using:

component.addVariantsFromConfiguration(...) { ... }

component.withVariantsFromConfiguration(...) { ... }

  1. … 10 more files in changeset.
Use instantiator for DSL objects created through SoftwareComponentFactory

To have a better and consistent DSL experience when using:

component.addVariantsFromConfiguration(...) { ... }

component.withVariantsFromConfiguration(...) { ... }

  1. … 10 more files in changeset.
Update subprojects/docs/src/docs/userguide/java_testing.adoc

Co-Authored-By: Sterling Greene <big-guy@users.noreply.github.com>

Add AdhocSoftwareComponent.withVariantsFromConfiguration() API

  1. … 8 more files in changeset.
Autodetect TestFramework if none is configure explicitly

When the TestFramework of a Test task is not configured explicitly it

used to default to `useJUnit()`. Now, the task's classpath is inspected

for a junit-platform-engine.jar or testng.jar. If one of them is found,

the task uses the JUnit Platform or TestNG to execute tests,

respectively.

Since we have internal dependencies on the JUnit Platform and TestNG,

all Test tasks in our own build are configured to `useJUnit()` and

explicitly.

  1. … 12 more files in changeset.
Consistent wording: 'Gradle Module Metadata' (not experimental)

  1. … 7 more files in changeset.
Revert "Revert "Add debug support to TestLauncher (#9863)""

This reverts commit 17d0ec1ba0dd44df1a6e2e2f8e79c366faa2bee7.

  1. … 39 more files in changeset.
Revert "Add debug support to TestLauncher (#9863)"

This reverts commits 026d9f4f8b33e64a64fd0f9f4c364b4c7cebf26f and fda0f3d58074137a1e9204fbf2762d9f63a0603b.

Temporarily reverted due to a possible performance regression.

  1. … 40 more files in changeset.
Add debug support to TestLauncher (#9863)

  1. … 39 more files in changeset.
Add documentation

  1. … 3 more files in changeset.
Add documentation for Java test fixtures

This commit adds documentation and samples for producing and

consuming test fixtures using the `java-test-fixtures` plugin.

  1. … 21 more files in changeset.
Add documentation for Java test fixtures

This commit adds documentation and samples for producing and

consuming test fixtures using the `java-test-fixtures` plugin.

  1. … 21 more files in changeset.
Add documentation for Java test fixtures

This commit adds documentation and samples for producing and

consuming test fixtures using the `java-test-fixtures` plugin.

  1. … 20 more files in changeset.
Add documentation for Java test fixtures

This commit adds documentation and samples for producing and

consuming test fixtures using the `java-test-fixtures` plugin.

  1. … 21 more files in changeset.
Add documentation for Java test fixtures

This commit adds documentation and samples for producing and

consuming test fixtures using the `java-test-fixtures` plugin.

  1. … 20 more files in changeset.
Fix hyphen

Signed-off-by: Stefan M <StefMa@users.noreply.github.com>

Remove out-of-date comment

Remove out-of-date comment

Fix some broken links in the user manual

  1. … 7 more files in changeset.
Merge pull request #6395 from gradle/wolfs/deprecations/classesDir

Another try at removing the classes dir.

This reverts commit 76e359df

  1. … 25 more files in changeset.
Revert "Merge pull request #6395 from gradle/wolfs/deprecations/classesDir"

Reverting since it breaks some cross version checks.

This reverts commit adaf86371e3d58d929030184bfc1c11b60ade1bf, reversing

changes made to 37df84902151344db627d6ea7c67461413ad55c9.

  1. … 25 more files in changeset.
Remove test.single and test.debug system properties from Test task

Fixes #6303

  1. … 4 more files in changeset.
Include Kotlin DSL samples in building_java_projects chapter

  1. … 36 more files in changeset.
Include Kotlin DSL samples in java_testing chapter

  1. … 133 more files in changeset.
Remove Test.testClassesDir

  1. … 6 more files in changeset.
Convert user manual to be generated by Asciidoctor only

This change replaces all embedded Docbook syntax from the user manual.

Asciidoctor files are now converted directly to HTML and PDF.

It not only greatly simplifies the user manual generation pipeline, but also it makes it faster.

I did the following for all user manual pages:

- [x] Adjusted links to other manual pages, DSL docs, and Javadocs where necessary.

Fixed a couple dozen broken links at least.

- [x] Convert samples XML from docbook to asciidoctor syntax

- [x] Converted wide tables to a more flexible list-based display

Important contributor differences from now on:

- Users must use a `<file>.adoc#` prefix for all cross-reference links.

This is _required_ to achieve working links in all 3 outputs: multi-page user manual, single-page user manual, and PDF.

- The manual PDF is no longer themed, and no longer has the list of examples links in the TOC.

- File names were changed from camelCased to snake_case to have a crystal clear 1-1 mapping between source to output.

- Section reference verification is now handled by Asciidoctor verbose mode.

- The single-page user manual has the same navigation as the multi-page manual for now.

- [Common Asciidoctor extensions](https://github.com/gradle/dotorg-docs/tree/master/docs-asciidoctor-extensions) are now used by Gradle Guides and the User Manual, however, the the web assets (CSS, JS, etc) are not yet merged.

These extensions are responsible for injecting the navigation and styles.

The header/footer/navigation HTML can now be found under `subprojects/docs/src/main/resources`.

  1. … 401 more files in changeset.
Rename user manual asciidoc files to snake_case

This makes the file names match the output HTML file names,

allowing for us to convert the user manual to asciidoc only.

See also #5837

    • -0
    • +484
    ./java_testing.adoc
  1. … 170 more files in changeset.