test

Syntax

test(scriptFile, [outputFile], [testMemLeaking=false])

Arguments

scriptFile is a string indicating the path of a testing script file or a folder.

outputFile is a string indicating the path of a test result script file or a folder.

testMemLeaking is a Boolean value indicating whether to test for memory leaks.

Details

A system command for unit testing. It must be executed by a logged-in user.

If scriptFile is a folder, all script files in the folder will be tested.

If outFile is not specified, the testing result will be displayed on screen.

Examples

$ test("C:/DolphinDB/test/test1.txt", "C:/DolphinDB/testResult/test1.txt");
$ test("C:/DolphinDB/test");