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

Version Path
trackler-2.2.1.104 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.103 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.102 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.101 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.100 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.99 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.98 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.97 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.96 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.95 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.94 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.93 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.92 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.91 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.90 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.89 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.88 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.87 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.86 tracks/cfml/tasks/TestAllSolutions.cfc
trackler-2.2.1.85 tracks/cfml/tasks/TestAllSolutions.cfc