KoboldClient Class
Constructor
KoboldClient
()
Item Index
Methods
- _runMocha
- _setupDecorators
- getDecorator
- getEventReporter
- getFunctions
- getGlobals
- getGrep
- getMochaConfiguration
- getOptions
- getPaths
- getRecursive
- getReporter
- getReportManager
- getRequire
- getSlowThreshold
- getTimeOut
- getUi
- initialize
- lookupFiles
- processAfter
- processAfterTest
- processBefore
- processBeforeTest
- run
- setMochaConfiguration
- shouldBail
- shouldCheckLeaks
- shouldInvert
- shouldSort
- useAsyncOnly
- useColors
- useInlineDiffs
- useTimeOuts
Methods
_runMocha
-
options -
success -
failure
Runs mocha tests, self-contained
Parameters:
-
optionsObject-
reporterString -
uiString -
colorsBoolean -
inlineDiffsBoolean -
slowInt -
timeOutsBoolean -
timeOutInt -
bailBoolean -
grepBoolean | String -
invertBoolean -
checkLeaksBoolean -
asyncOnlyBoolean -
globalsString[] -
[paths=['test']String[] optional -
functionsFunctions -
recursiveBoolean -
requireString | String[] -
sortBoolean
-
-
successFunction -
failureFunction
Returns:
_setupDecorators
-
eventReporter -
decorators -
decoratorPlugins
Setup decorator plugins
Returns:
getEventReporter
()
EventReporter
Gets the event-reporter
Returns:
getFunctions
()
Function[]
Gets a list of functions to execute before the tests
Mocha Option:
Returns:
getMochaConfiguration
()
Object
Gets the mocha configuration Overwrite this function if the mocha configuration is found somewhere else.
Returns:
getReportManager
()
ReportManager
Gets the report-manager
Returns:
getRequire
()
String[]
List of files to be required before the tests are run Mocha Option: require
Returns:
getSlowThreshold
()
Int
Gets the threshold for slow tests Mocha Option: slow
Returns:
getTimeOut
()
Int
Gets the threshold for too slow test-suites Mocha Option: timeout
Returns:
initialize
()
Initializes the instance
lookupFiles
-
currentPath -
[recursive=false]
Lookup all files in the path given
Returns:
processAfter
()
Promise
Processes the end of the testing environment
Returns:
processAfterTest
()
Promise
Processes the ending of a test
Returns:
processBefore
()
Promise
Processes the begin of the testing environment
Returns:
processBeforeTest
()
Promise
Processes the beginning of a test
Returns:
setMochaConfiguration
-
options
Sets the mocha configuration Overwrite this function if the mocha configuration is found somewhere else.
Parameters:
-
optionsObject
shouldSort
()
Boolean
Should tests be sorted after gathering and before executing? Mocha Option: sort
