Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/profelis/das-test
https://github.com/profelis/das-test
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/profelis/das-test
- Owner: profelis
- License: mit
- Created: 2021-11-04T21:21:09.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T17:35:10.000Z (5 months ago)
- Last Synced: 2024-08-27T19:28:19.549Z (5 months ago)
- Size: 120 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# daScript testing framework
## Introduction
Inspired by [Golang testing framework](https://pkg.go.dev/testing), this framework provides a simple way to write unit tests for your scripts.
## Usage
- `dascript dastest.das -- --test folderWithScriptsOrSingleScript [--test anotherPath]`
### dastest.das arguments
- `--test`: Path to the folder with scripts or single script to test
- `--test-names `: Run top-level tests matching "namePrefix", such as "namePrefix1"
- `--test-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 `: 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#### Internal arguments
- `--run`: Path to the single script file to run tests in isolated mode