Sha256: ac5be30e6d8747736d6e2cc7f4fe2d87a2ac1cc77054e5840e89d7e5cfaae065
Contents?: true
Size: 690 Bytes
Versions: 70
Compression:
Stored size: 690 Bytes
Contents
/** * I test all the solutions in each exercise to make sure they all pass. */ component { function run() { // Get an array of all the excercise names var exercises = directoryList( expandPath( getDirectoryFromPath( getCurrentTemplatePath() ) & '../exercises' ) ); // If there's a testrunner task in them, run it. If any of the tasks fail, the exit code will come back as 1 exercises.each( function( path ) { if( fileExists( path & '/TestRunner.cfc' ) ) { command( 'task run' ) .params( 'TestRunner' ) // Specifically as the task runners to run the SolutionTest .flags( ':solution' ) .inWorkingDirectory( path ) .run(); } } ); } }
Version data entries
70 entries across 69 versions & 1 rubygems