mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-06-30 11:10:23 +01:00
add Taskfile
upd tasks in launch.json add with Task to Run tests in README
This commit is contained in:
parent
a0a2c72634
commit
bd0779add2
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
# quick test
|
||||
quick.ps1
|
||||
|
||||
lib/*.psd1
|
||||
**/*.log
|
||||
|
||||
config.psd1
|
||||
|
||||
test-*.ps1
|
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
@ -51,21 +51,9 @@
|
||||
"type": "PowerShell",
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"script": "${workspaceFolder}/tests/pre-commit.ps1",
|
||||
"script": "${workspaceFolder}/tests/run.ps1",
|
||||
"args": [],
|
||||
"createTemporaryIntegratedConsole": true
|
||||
},
|
||||
{
|
||||
"name": "PowerShell: Launch Quick Test",
|
||||
"type": "PowerShell",
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"script": "${workspaceFolder}/quick.ps1",
|
||||
"args": [
|
||||
"-Verbose",
|
||||
"-Debug"
|
||||
],
|
||||
"createTemporaryIntegratedConsole": true
|
||||
}
|
||||
]
|
||||
}
|
10
README.md
10
README.md
@ -557,16 +557,16 @@ Access to lower level polling functions are provided with these functions:
|
||||
|
||||
### Run tests
|
||||
|
||||
Run tests using .\tests\pre-commit.ps1 which accepts the following parameters:
|
||||
Parameters:
|
||||
|
||||
- `kind`: Run tests of this kind
|
||||
- `tag`: Run tests tagged with this marker (currently `higher` or `lower`)
|
||||
- `num`: Run this number of tests
|
||||
- `log`: Write summary log file
|
||||
|
||||
Run tests from repository root in a subshell and write logs, like so:
|
||||
*with Task*
|
||||
|
||||
`powershell .\tests\pre-commit.ps1 -k "potato" -t "higher" -log`
|
||||
```console
|
||||
task test -- -t "higher" -k "banana"
|
||||
```
|
||||
|
||||
### Official Documentation
|
||||
|
||||
|
11
Taskfile.yaml
Normal file
11
Taskfile.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
version: '3'
|
||||
|
||||
tasks:
|
||||
test:
|
||||
desc: 'Run tests'
|
||||
preconditions:
|
||||
- sh: 'pwsh -c "if ([System.Version](Get-InstalledModule Pester).Version.ToString() -gt [System.Version]"5.7.0") { exit 0 } else { exit 1 }"'
|
||||
msg: 'Pester version must be greater than 5.7.0'
|
||||
cmds:
|
||||
- echo "Running tests..."
|
||||
- pwsh -c "tests\run.ps1 {{.CLI_ARGS}}"
|
Loading…
x
Reference in New Issue
Block a user