Skip to content

Commit

Permalink
Change native test discovery for hopefully better debugging in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jul 15, 2024
1 parent 20540a6 commit adfb8e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion natives/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ')
Expand Down

0 comments on commit adfb8e8

Please sign in to comment.