From adfb8e8dab7a736df165d03df989ee3084d764fd Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Mon, 15 Jul 2024 00:04:23 -0500 Subject: [PATCH] Change native test discovery for hopefully better debugging in tests --- natives/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/natives/build.gradle b/natives/build.gradle index f49acae..00ff3fa 100644 --- a/natives/build.gradle +++ b/natives/build.gradle @@ -138,7 +138,14 @@ abstract class SetupJunitEnvironment extends DefaultTask { args.add('execute') args.add('--fail-if-no-tests') args.add('--class-path=testclasses') - args.add('--scan-class-path') + testClasses.files.each { outer -> + outer.eachFileRecurse(groovy.io.FileType.FILES) { classFile -> + def className = outer.relativePath(classFile).replace('/', '.').replace('\\', '.') + if (className.endsWith('.class')) { + args.add('--select-class=' + className[0..-7]) + } + } + } args.add('--reports-dir=results') unixargfile.getAsFile().text = args.join(' ') macosargfile.getAsFile().text = args.join(' ')