Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mivallion/vscode-tarantool-luatest-adapter
Tarantool luatest vscode-adapter
https://github.com/mivallion/vscode-tarantool-luatest-adapter
Last synced: about 1 month ago
JSON representation
Tarantool luatest vscode-adapter
- Host: GitHub
- URL: https://github.com/mivallion/vscode-tarantool-luatest-adapter
- Owner: mivallion
- License: mit
- Created: 2024-10-24T11:02:52.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T13:29:30.000Z (2 months ago)
- Last Synced: 2024-10-25T10:34:21.748Z (2 months ago)
- Language: TypeScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tarantool luatest adapter for Visual Studio Code
This is a Tarantool luatest adapter for Test Explorer UI (https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-test-explorer)
## Supported
* Detect luatest tests
* Run luatest tests## Not supported
* Automatic reloading of test definitions
* Autorun
* Debugging## Getting Started
1. Install Test Explorer UI
* https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-test-explorer2. Install tarantool luatest adapter
3. Run the tests via the Test Explorer UI
## Configuration
| Property | Description |
| --- | --- |
| `tarantoolLuatestAdapter.luaTestExe` | Path to luatest executable. The current workspace folder can be referred to using `${workspaceFolder}`. Defaults to `.rocks/bin/luatest` |
| `tarantoolLuatestAdapter.testGlob` | Glob used to find test files. Defaults to `**/*[tT]est*.{lua}` |
| `tarantoolLuatestAdapter.testRegex` | Regex used to find tests. Defaults to `/^(?[a-zA-Z_]*)\.(?[tT]est[a-zA-Z0-9_]*)\s*=\s*function\s*(?:[a-zA-Z][a-zA-Z0-9]*:)?\s*\([a-zA-Z_,.]*\)(?:.*)$/gm` |
| `tarantoolLuatestAdapter.testGroupRegex` | Regex used to find tests groups. Defaults to `/^local (?[a-zA-Z][a-zA-Z*_]*)\s*=\s*[a-zA-Z]*.group\(['"](?[a-z-A-Z_0-9.]*)['"]/gm` |
| `tarantoolLuatestAdapter.testEncoding` | Test file encoding. Defaults to `utf8` |
| `tarantoolLuatestAdapter.decorationRegex` | Regex used to find line number and failure message. Defaults to `/\.lua:(?[1-9][0-9]*):(?.*)stack traceback:/` |