Skip to content

Commit 6628ef8

Browse files
PackageToJS: Skip reporting stack trace for "no tests found"
1 parent 9608e46 commit 6628ef8

File tree

1 file changed

+2
-1
lines changed
  • Plugins/PackageToJS/Templates/bin

1 file changed

+2
-1
lines changed

Plugins/PackageToJS/Templates/bin/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const harnesses = {
4242
let options = await nodePlatform.defaultNodeSetup({
4343
args: testFrameworkArgs,
4444
onExit: (code) => {
45-
if (code !== 0) {
45+
// swift-testing returns EX_UNAVAILABLE (which is 69 in wasi-libc) for "no tests found"
46+
if (code !== 0 && code !== 69) {
4647
const stack = new Error().stack
4748
console.error(`Test failed with exit code ${code}`)
4849
console.error(stack)

0 commit comments

Comments
 (0)