Inspired by Golang testing framework, this framework provides a simple way to write unit tests for your scripts.
dascript dastest.das -- --test folderWithScriptsOrSingleScript [--test anotherPath]
--test
: Path to the folder with scripts or single script to test--test-names <namePrefix>
: Run top-level tests matching "namePrefix", such as "namePrefix1"--test-project <path.das_project>
: Project file. Will be used to compile given tests--uri-paths
: Print uri paths instead of file paths (vscode friendly)--color
: Print colored output--verbose
: Print verbose output--timeout <seconds>
: If tests run longer than duration d, panic. If d is 0, the timeout is disabled. The default is 10 minutes--isolated-mode
: Run tests in isolated processes, useful to catch crashes
--run
: Path to the single script file to run tests in isolated mode