Skip to content

Commit

Permalink
Add debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Sep 11, 2024
1 parent 09a1a64 commit 6431666
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions embulk-junit5-engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies {
api platform("org.junit:junit-bom:5.11.0")
api "org.junit.jupiter:junit-jupiter-api" // Follows junit-bom:5.11.0 => 5.11.0
api "org.junit.platform:junit-platform-engine" // Follows junit-bom:5.11.0 => 1.11.0
api "org.junit.platform:junit-platform-launcher" // Follows junit-bom:5.11.0 => 1.11.0
}

javadoc {
Expand Down
1 change: 1 addition & 0 deletions embulk-junit5-engine/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ org.apiguardian:apiguardian-api:1.1.2=compileClasspath
org.junit.jupiter:junit-jupiter-api:5.11.0=compileClasspath,runtimeClasspath
org.junit.platform:junit-platform-commons:1.11.0=compileClasspath,runtimeClasspath
org.junit.platform:junit-platform-engine:1.11.0=compileClasspath,runtimeClasspath
org.junit.platform:junit-platform-launcher:1.11.0=compileClasspath,runtimeClasspath
org.junit:junit-bom:5.11.0=compileClasspath,runtimeClasspath
org.opentest4j:opentest4j:1.3.0=compileClasspath,runtimeClasspath
empty=
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ public final String getId() {
*/
@Override
public TestDescriptor discover(final EngineDiscoveryRequest discoveryRequest, final UniqueId uniqueId) {
System.out.println("EngineDiscoveryRequest: " + discoveryRequest.toString());
if (discoveryRequest instanceof org.junit.platform.launcher.LauncherDiscoveryRequest) {
final org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest =
(org.junit.platform.launcher.LauncherDiscoveryRequest) discoveryRequest;
System.out.println(" EngineFilters: " + launcherDiscoveryRequest.getEngineFilters());
System.out.println(" PostDiscoveryFilters: " + launcherDiscoveryRequest.getPostDiscoveryFilters());
}
System.out.println(" ConfigurationParameters: " + discoveryRequest.getConfigurationParameters());
System.out.println("UniqueId: " + uniqueId.toString());

final EmbulkPluginTestEngineDescriptor engineDescriptor = new EmbulkPluginTestEngineDescriptor(uniqueId);

discoveryRequest.getSelectorsByType(ClassSelector.class).forEach(classSelector -> {
Expand All @@ -69,7 +79,6 @@ public TestDescriptor discover(final EngineDiscoveryRequest discoveryRequest, fi
throw new RuntimeException(ex);
}


final TestDescriptor classDescriptor =
new ClassTestDescriptor(uniqueId.append("class", testClass.getName()), testClass);
System.out.println(classDescriptor);
Expand Down

0 comments on commit 6431666

Please sign in to comment.