summaryrefslogtreecommitdiff
path: root/tools/test-helper
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-07 12:21:12 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-07 12:46:05 +0100
commitefd1853d069fbd1476e82d015da4d0d04cfaccc0 (patch)
tree842b745c134306539d10c61be9485794fe8dc7dc /tools/test-helper
parenteb951c008beea502042db4a3a0e8d1f8b51f6f52 (diff)
Show it!
- New show rule syntax - Set if syntax - Removed wrap syntax
Diffstat (limited to 'tools/test-helper')
-rw-r--r--tools/test-helper/extension.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test-helper/extension.js b/tools/test-helper/extension.js
index 985112f0..253c78c7 100644
--- a/tools/test-helper/extension.js
+++ b/tools/test-helper/extension.js
@@ -38,12 +38,12 @@ function activate(context) {
const rerunCmd = vscode.commands.registerCommand("ShortcutMenuBar.testRerun", () => {
const uri = vscode.window.activeTextEditor.document.uri
- const components = uri.fsPath.split('tests')
+ const components = uri.fsPath.split(/tests[\/\\]/)
const dir = components[0]
const subPath = components[1]
cp.exec(
- `cargo test --manifest-path ${dir}/Cargo.toml --test typeset ${subPath}`,
+ `cargo test --manifest-path ${dir}/Cargo.toml --all --test tests -- ${subPath}`,
(err, stdout, stderr) => {
console.log('Ran tests')
refreshPanel(stdout, stderr)