GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add missing assertions to test-runner-cli · nodejs/node@3df7368

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-runner-cli.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-runner-cli.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-runner-cli.js
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const testFixtures = fixtures.path('test-runner');
3232
assert.match(stdout, /not ok 2 - this should fail/);
3333
assert.match(stdout, /ok 3 - .+subdir.+subdir_test\.js/);
3434
assert.match(stdout, /ok 4 - this should pass/);
35+
assert.match(stdout, /ok 5 - this should be skipped/);
36+
assert.match(stdout, /ok 6 - this should be executed/);
3537
}
3638

3739
{
@@ -44,6 +46,8 @@ const testFixtures = fixtures.path('test-runner');
4446
assert.match(stdout, /not ok 2 - this should fail/);
4547
assert.match(stdout, /ok 3 - .+subdir.+subdir_test\.js/);
4648
assert.match(stdout, /ok 4 - this should pass/);
49+
assert.match(stdout, /ok 5 - this should be skipped/);
50+
assert.match(stdout, /ok 6 - this should be executed/);
4751
assert.strictEqual(child.status, 1);
4852
assert.strictEqual(child.signal, null);
4953
assert.strictEqual(child.stderr.toString(), '');
@@ -91,6 +95,8 @@ const testFixtures = fixtures.path('test-runner');
9195
assert.match(stdout, /not ok 2 - this should fail/);
9296
assert.match(stdout, /ok 3 - .+subdir.+subdir_test\.js/);
9397
assert.match(stdout, /ok 4 - this should pass/);
98+
assert.match(stdout, /ok 5 - this should be skipped/);
99+
assert.match(stdout, /ok 6 - this should be executed/);
94100
}
95101

96102
{
@@ -156,9 +162,12 @@ const testFixtures = fixtures.path('test-runner');
156162
assert.match(stdout, /not ok 4 - level 0b/);
157163
assert.match(stdout, / {2}error: 'level 0b error'/);
158164
assert.match(stdout, /# tests 8/);
165+
assert.match(stdout, /# suites 0/);
159166
assert.match(stdout, /# pass 4/);
160167
assert.match(stdout, /# fail 3/);
168+
assert.match(stdout, /# cancelled 0/);
161169
assert.match(stdout, /# skipped 1/);
170+
assert.match(stdout, /# todo 0/);
162171
}
163172

164173
{

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.