xUnit

Last updated 6 months ago
  • 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

component{
function beforeTests(){}
function afterTests(){}
‚Äč
function setup( currentMethod ){}
function teardown( currentMethod ){}
}