Skip to content

Commit 18ddf6c

Browse files
committed
debug: add diagnostic output to ScaffoldingSpec
Temporary commit to capture runCommand task output on CI. Assisted-by: Claude Code <Claude@Claude.ai>
1 parent ba430f3 commit 18ddf6c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

grails-forge/test-core/src/test/groovy/org/grails/forge/features/scaffolding/ScaffoldingSpec.groovy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ class ScaffoldingSpec extends CommandSpec {
3838
String name
3939
}
4040
'''
41-
String output = executeGradle('runCommand', '-Pargs=generate-controller example.grails.Bird').output
41+
def result = executeGradle('runCommand', '-Pargs=generate-controller example.grails.Bird')
42+
String output = result.output
43+
System.err.println("=== SCAFFOLDING DEBUG: runCommand output ===")
44+
System.err.println(output)
45+
System.err.println("=== SCAFFOLDING DEBUG: tasks executed ===")
46+
result.tasks.each { System.err.println(" ${it.path} -> ${it.outcome}") }
47+
System.err.println("=== SCAFFOLDING DEBUG: dir contents ===")
48+
new File(dir, 'grails-app/controllers').with { if (it.exists()) it.eachFileRecurse { f -> System.err.println(" ${f}") } }
49+
System.err.println("=== END DEBUG ===")
4250

4351
then: 'generated files exist'
4452
new File(dir, 'grails-app/controllers/example/grails/BirdController.groovy').exists()

0 commit comments

Comments
 (0)