Skip to content

Commit c3a88d0

Browse files
committed
Draft diagrams
1 parent 890a5b7 commit c3a88d0

File tree

3 files changed

+72
-1
lines changed

3 files changed

+72
-1
lines changed

documentation/documentation.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ tasks {
268268
outputs.cacheIf { true }
269269
}
270270

271+
// TODO: Loop?
271272
val componentDiagram = plantUml.flatMap { it.outputDirectory.file("component-diagram.svg") }
273+
val junitPlatformLauncherApiDiagram = plantUml.flatMap { it.outputDirectory.file("junit-platform-launcher-api-diagram.svg") }
274+
val suiteEngineMultipleSuitesDiagram = plantUml.flatMap { it.outputDirectory.file("suite-engine-multiple-suites-diagram.svg") }
272275

273276
withType<AbstractAsciidoctorTask>().configureEach {
274277
inputs.files(
@@ -278,7 +281,9 @@ tasks {
278281
generateConsoleLauncherEnginesOptions,
279282
generateApiTables,
280283
generateStandaloneConsoleLauncherShadowedArtifactsFile,
281-
componentDiagram
284+
componentDiagram,
285+
junitPlatformLauncherApiDiagram,
286+
suiteEngineMultipleSuitesDiagram
282287
)
283288

284289
resources {
@@ -289,6 +294,12 @@ tasks {
289294
from(componentDiagram) {
290295
into("user-guide/images")
291296
}
297+
from(junitPlatformLauncherApiDiagram) {
298+
into("user-guide/images")
299+
}
300+
from(suiteEngineMultipleSuitesDiagram) {
301+
into("user-guide/images")
302+
}
292303
}
293304

294305
// Temporary workaround for https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/599
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@startuml
2+
object "IDEs"
3+
object "Build Tools"
4+
object "Console Launcher"
5+
object "JUnit Platform"
6+
7+
object "Jupiter Test Engine"
8+
object "Test Classes"
9+
10+
object "Cucumber Test Engine"
11+
object "Feature Files"
12+
13+
object "Spock Test Engine"
14+
object "Specifications"
15+
16+
17+
"IDEs" --> "JUnit Platform": ...
18+
"Build Tools" --> "JUnit Platform" : ...
19+
"Console Launcher" --> "JUnit Platform" : requests discovery and execution
20+
"JUnit Platform" --> "Jupiter Test Engine": ...
21+
"Jupiter Test Engine" --> "Test Classes" : ...
22+
23+
"JUnit Platform" --> "Cucumber Test Engine": ...
24+
"Cucumber Test Engine" --> "Feature Files" : ...
25+
26+
"JUnit Platform" --> "Spock Test Engine": forwards request
27+
"Spock Test Engine" --> "Specifications" : discovers and executes
28+
@enduml
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@startuml
2+
object IDE
3+
object "Build Tools"
4+
object "Console Launcher"
5+
object "JUnit Platform"
6+
object "Suite Test Engine"
7+
8+
object "@Suite annotated class A"
9+
object "JUnit Platform (A)"
10+
object "JUpiter Test Engine (A)"
11+
object "ExampleTest (A)"
12+
13+
object "@Suite annotated class B"
14+
object "JUnit Platform (B)"
15+
object "JUpiter Test Engine (B)"
16+
object "ExampleTest (B)"
17+
18+
IDE --> "JUnit Platform": ...
19+
"Build Tools" --> "JUnit Platform" : ...
20+
"Console Launcher" --> "JUnit Platform" : requests discovery and execution
21+
"JUnit Platform" --> "Suite Test Engine": forwards request
22+
23+
"Suite Test Engine" --> "@Suite annotated class A" : ...
24+
"@Suite annotated class A" --> "JUnit Platform (A)" : ...
25+
"JUnit Platform (A)" --> "JUpiter Test Engine (A)" : ...
26+
"JUpiter Test Engine (A)" --> "ExampleTest (A)" : ...
27+
28+
"Suite Test Engine" --> "@Suite annotated class B" : discovers and executes
29+
"@Suite annotated class B" --> "JUnit Platform (B)" : requests discovery and execution
30+
"JUnit Platform (B)" --> "JUpiter Test Engine (B)" : forwards request
31+
"JUpiter Test Engine (B)" --> "ExampleTest (B)" : discovers and executes
32+
@enduml

0 commit comments

Comments
 (0)