xUnit
  • beforeTests() - Executes once before all tests for the entire test bundle CFC
  • afterTests() - Executes once after all tests complete in the test bundle CFC
  • setup( currentMethod ) - Executes before every single test case and receives the name of the actual testing method
  • teardown( currentMethod ) - Executes after every single test case and receives the name of the actual testing method
1
component{
2
function beforeTests(){}
3
function afterTests(){}
4
5
function setup( currentMethod ){}
6
function teardown( currentMethod ){}
7
}
Copied!
Last modified 4yr ago
Copy link
Edit on GitHub