nolanerck
10/11/2022, 10:28 PMbdw429s
10/11/2022, 10:32 PMbdw429s
10/11/2022, 10:32 PMnolanerck
10/11/2022, 10:33 PMnolanerck
10/11/2022, 10:33 PMcomponent extends="coldbox.system.testing.BaseTestCase" appMapping="/" {
function run(){
describe( "DateUtils Suite", function(){
});
}
}
nolanerck
10/11/2022, 10:33 PMnolanerck
10/11/2022, 10:34 PMbdw429s
10/11/2022, 10:35 PMnolanerck
10/11/2022, 10:35 PMbdw429s
10/11/2022, 10:35 PMnolanerck
10/11/2022, 10:36 PMbdw429s
10/11/2022, 10:38 PMbdw429s
10/11/2022, 10:38 PMbdw429s
10/11/2022, 10:39 PMgoto sandbox
mkdir nolantest --cd
coldbox create app
start cfengine=lucee@5.3.8
!code .
// pasted in spec CFC here
testbox run
nolanerck
10/11/2022, 10:39 PMbdw429s
10/11/2022, 10:39 PMbdw429s
10/11/2022, 10:40 PMnolanerck
10/11/2022, 10:40 PMbdw429s
10/11/2022, 10:40 PMnolanerck
10/11/2022, 10:41 PMnolanerck
10/11/2022, 10:41 PMbdw429s
10/11/2022, 10:42 PMbdw429s
10/11/2022, 10:42 PMcoldbox.system.testing.BaseTestCase
which will load and unload the ColdBox framework before and after the testnolanerck
10/11/2022, 10:42 PMbdw429s
10/11/2022, 10:43 PMcoldbox.system.testing.BaseTestCase
nolanerck
10/11/2022, 10:45 PMbdw429s
10/11/2022, 10:45 PMnolanerck
10/11/2022, 10:45 PMnolanerck
10/11/2022, 10:45 PMnolanerck
10/11/2022, 10:45 PMbdw429s
10/11/2022, 10:45 PMbdw429s
10/11/2022, 10:45 PMnolanerck
10/11/2022, 10:46 PMbdw429s
10/11/2022, 10:46 PMbdw429s
10/11/2022, 10:47 PMnolanerck
10/11/2022, 10:47 PMbdw429s
10/11/2022, 10:47 PMnolanerck
10/11/2022, 10:47 PMbdw429s
10/11/2022, 10:48 PMnolanerck
10/11/2022, 10:48 PMnolanerck
10/11/2022, 10:48 PMbdw429s
10/11/2022, 10:48 PMbdw429s
10/11/2022, 10:48 PMbdw429s
10/11/2022, 10:49 PMbdw429s
10/11/2022, 10:50 PMapplication.cbcontroller
but it has parts of it removed and replaced with non-working CFCsbdw429s
10/11/2022, 10:50 PMbdw429s
10/11/2022, 10:51 PMnolanerck
10/11/2022, 10:56 PMnolanerck
10/11/2022, 10:57 PMnolanerck
10/11/2022, 10:57 PMnolanerck
10/11/2022, 10:57 PMnolanerck
10/11/2022, 10:57 PMnolanerck
10/11/2022, 10:57 PMcomponent{
// APPLICATION CFC PROPERTIES
this.name = "ColdBoxTestingSuite" & hash(getCurrentTemplatePath());
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan( 0, 0, 15, 0 );
this.applicationTimeout = createTimeSpan( 0, 0, 15, 0 );
this.setClientCookies = true;
this.datasource="myemcdev";
// Create testing mapping
this.mappings[ "/tests" ] = getDirectoryFromPath( getCurrentTemplatePath() );
// Map back to its root
rootPath = REReplaceNoCase( this.mappings[ "/tests" ], "tests(\\|/)", "" );
this.mappings["/root"] = rootPath;
public void function onRequestEnd() {
if( !isNull( application.cbController ) ){
application.cbController.getLoaderService().processShutdown();
}
structDelete( application, "cbController" );
structDelete( application, "wirebox" );
}
}
nolanerck
10/11/2022, 10:58 PMbdw429s
10/11/2022, 10:58 PMbdw429s
10/11/2022, 10:59 PMbdw429s
10/11/2022, 10:59 PMbdw429s
10/11/2022, 11:00 PMbdw429s
10/11/2022, 11:00 PMApplication.cfc
is, it's "your" code, meaning TestBox or ColdBox upgrades won't touch it. It gets committed to your repo and you manage it.nolanerck
10/11/2022, 11:00 PMbdw429s
10/11/2022, 11:01 PMbdw429s
10/11/2022, 11:01 PMtestbox
folder is installed with TestBoxbdw429s
10/11/2022, 11:01 PMtests
folder is not part of the testbox corenolanerck
10/11/2022, 11:01 PMbdw429s
10/11/2022, 11:02 PMcoldbox create app
, etc)
⢠The testbox generate harness
scaffolding command
⢠manually created by someonenolanerck
10/11/2022, 11:03 PMnolanerck
10/11/2022, 11:03 PMnolanerck
10/11/2022, 11:38 PM