Andras Nagy
06/20/2024, 5:30 AMFunction 'getComponentMetadata' not found
error for a lot of things I'm doing so this might be a generic error.
private function runTests() {
var javaSystem = createObject( "java", "java.lang.System" );
var exerciseRoot = javaSystem.getProperty( "user.dir" );
var testCFC = ArrayFirst( DirectoryList( path = exerciseRoot, filter = "*Test.cfc" ) );
var testRunner = new testbox.system.TestBox( testCFC );
var testData = testRunner.runRaw().getMemento();
println( testData );
// Set proper exit code
if( testData.totalFail || testData.totalError ) {
setExitCode( 1 );
}
}
Andras Nagy
06/20/2024, 5:31 AMseancorfield
bx-compat
module installed? 2. Are you using the @be
version of TestBox?Andras Nagy
06/20/2024, 2:22 PMAndras Nagy
06/23/2024, 4:00 AMprivate function runTests() {
var javaSystem = createObject( "java", "java.lang.System" );
var exerciseRoot = javaSystem.getProperty( "user.dir" );
var testCFCs = DirectoryList( path = exerciseRoot, filter = "*Test.cfc" );
var testRunner = new testbox.system.TestBox();
var testData = testRunner.runRaw( bundles = testCFCs, eagerFailure = true ).getMemento();
println( testData );
// Set proper exit code
if( testData.totalFail || testData.totalError ) {
setExitCode( 1 );
}
}
I set up the bx-compat module and installed the bleeding edge TestBox, but I can't get past this error.