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:
-
options
Object-
reporter
String -
ui
String -
colors
Boolean -
inlineDiffs
Boolean -
slow
Int -
timeOuts
Boolean -
timeOut
Int -
bail
Boolean -
grep
Boolean | String -
invert
Boolean -
checkLeaks
Boolean -
asyncOnly
Boolean -
globals
String[] -
[paths=['test']
String[] optional -
functions
Functions -
recursive
Boolean -
require
String | String[] -
sort
Boolean
-
-
success
Function -
failure
Function
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:
-
options
Object
shouldSort
()
Boolean
Should tests be sorted after gathering and before executing? Mocha Option: sort