Tests and suites can be tagged with TestBox labels. Labels allows you to further categorize different tests or suites so that when a runner executes with labels attached, only those tests and suites will be executed, the rest will be skipped. Labels can be applied globally to the component declaration of the test bundle suite or granularly at the test method declaration.
component displayName="TestBox xUnit suite" labels="railo,stg,dev"{functionsetup(){application.wirebox =newcoldbox.system.ioc.Injector();structClear( request ); }functionteardown(){structDelete( application,"wirebox" );structClear( request ); }functiontestThrows(){$assert.throws(function(){var hello =application.wirebox.getInstance( "myINvalidService" ).run(); }); }functiontestNotThrows(){$assert.notThrows(function(){var hello =application.wirebox.getInstance( "MyValidService" ).run();; }); }functiontestFailsShortcut() labels="dev"{fail( "This Test should fail when executed with labels" ); }}