Skip to content

Commit

Permalink
gradle test fixtures plugin blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Oct 3, 2023
1 parent 9334748 commit 012f939
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions posts/gradle-java-test-fixtures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Gradle Java Test Fixtures Plugin
summary: Gradle Plugin which automatically create a `testFixtures` source set, in which you can write your test fixtures.
date_published: 2023-10-03T12:05:33+01:00
keywords:gradle,test
external_url: https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures
---

# [%title]

[%summary]

> Test fixtures are commonly used to setup the code under test, or provide utilities aimed at facilitating the tests of a component. Java projects can enable test fixtures support by applying the `java-test-fixtures` plugin, in addition to the java or java-library plugins.
> This will automatically create a testFixtures source set, in which you can write your test fixtures. Test fixtures are configured so that:
> - they can see the main source set classes
> test sources can see the test fixtures classes
2 changes: 1 addition & 1 deletion posts/system-stubs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: System Stubs
summary: > System Stubs is used to test code which depends on methods in java.lang.System.
date_published: 2023-10-03T11:58:16+01:00
keywords:java,junit5
keywords:java,junit5,test
external_url: https://github.com/webcompere/system-stubs#system-stubs
---

Expand Down

0 comments on commit 012f939

Please sign in to comment.