Skip to content

Commit f9ff116

Browse files
committed
update test commands
1 parent a4372bb commit f9ff116

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/unit-test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ jobs:
4040
}
4141
elseif ( $pluginsToTest.Count -eq 1 ) {
4242
Write-Output "Testing only one Plugin"
43-
$pluginName = ($pluginsToTest.TrimEnd('/')) -replace "plugins/" -replace "/", "-"
44-
pnpm run test --ci --path="./$pluginsToTest" --pluginName="$pluginName"
43+
pnpm run test --ci --path="./$pluginsToTest"
4544
}
4645
else {
4746
Write-Output "Testing $($pluginsToTest.Count) Plugins..."
4847
foreach ( $plugin in $pluginsToTest ) {
4948
Write-Output "Testing $plugin"
50-
$pluginName = ($plugin.TrimEnd('/')) -replace "plugins/" -replace "/", "-"
51-
pnpm run test --ci --path="./$plugin" --pluginName="$pluginName"
49+
pnpm run test --ci --path="./$plugin"
5250
Write-Output "Tested $plugin"
5351
}
5452
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ A plugin is a directory in this repo of the form `plugins/`_plugin-name_`/v1` co
102102
pnpm run unitTest
103103
# If running from the root of the repo
104104
# Replace 'ExamplePlugin' with your plugin name
105-
pnpm run test -- --pluginName="ExamplePlugin" --pluginPath="plugins/ExamplePlugin/v1"
105+
pnpm run test --path="plugins/ExamplePlugin/v1"
106106
# OR
107107
# Replace example-plugin-v1 with name from package.json of the plugin you are interested in
108108
pnpm run -F "example-plugin-v1" unitTest

0 commit comments

Comments
 (0)