Skip to content

feat: Implement standalone mocha runner and loader #15

feat: Implement standalone mocha runner and loader

feat: Implement standalone mocha runner and loader #15

GitHub Actions / VS Code Test Results (macos-latest, stable, desktop) failed Mar 31, 2024 in 1s

20 passed, 1 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
test-results/simple.json 10✅ 1❌ 11s
test-results/unit.json 10✅ 230ms

❌ test-results/simple.json

11 tests were completed in 11s with 10 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
out/test/integration/simple.test.js 10✅ 1❌ 4s

❌ out/test/integration/simple.test.js

simple
  ✅ cleans up folder if all child files are deleted
  ✅ debugs tests in a file
  ✅ discovers tests
  ❌ handles changes to .mocharc.js
	[]
  ✅ handles file and directory excludes
  ✅ handles file change
  ✅ handles file delete
  ✅ runs subsets of tests
  ✅ runs tests
  ✅ runs tests in a file
  ✅ runs tests in directory

✅ test-results/unit.json

10 tests were completed in 230ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
out/test/unit/extract/evaluate.test.js 6✅ 104ms
out/test/unit/extract/syntax.test.js 4✅ 25ms

✅ out/test/unit/extract/evaluate.test.js

evaluate
  ✅ can evaluate and extract a test table
  ✅ extracts basic suite
  ✅ handles errors appropriately
  ✅ runs esbuild-style modules
  ✅ stubs out requires and placeholds correctly
  ✅ works with skip/only

✅ out/test/unit/extract/syntax.test.js

syntax
  ✅ can detect suite but not dynamic tests
  ✅ extracts basic suite
  ✅ stubs out requires and placeholds correctly
  ✅ works with skip/only

Annotations

Check failure on line 0 in test-results/simple.json

See this annotation in the file changed.

@github-actions github-actions / VS Code Test Results (macos-latest, stable, desktop)

out/test/integration/simple.test.js ► simple ► handles changes to .mocharc.js

Failed test found in:
  test-results/simple.json
Error:
  []
Raw output
AssertionError [ERR_ASSERTION]: []
	at expectTestTree (out/test/util.js:107:12)
	at Context.<anonymous> (out/test/integration/simple.test.js:145:41)