forked from gpuweb/cts
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add demo test suite, for manually testing test runners (gpuweb#194)
- Loading branch information
Showing
9 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Demo test suite for manually testing test runners. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const description = 'Description for a.spec.ts'; | ||
|
||
import { makeTestGroup } from '../common/framework/test_group.js'; | ||
import { UnitTest } from '../unittests/unit_test.js'; | ||
|
||
export const g = makeTestGroup(UnitTest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README for a/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const description = 'Description for b.spec.ts'; | ||
|
||
import { makeTestGroup } from '../../common/framework/test_group.js'; | ||
import { UnitTest } from '../../unittests/unit_test.js'; | ||
|
||
export const g = makeTestGroup(UnitTest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README for a/b/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export const description = 'Description for c.spec.ts'; | ||
|
||
import { makeTestGroup } from '../../../common/framework/test_group.js'; | ||
import { unreachable } from '../../../common/framework/util/util.js'; | ||
import { UnitTest } from '../../../unittests/unit_test.js'; | ||
|
||
export const g = makeTestGroup(UnitTest); | ||
|
||
g.test('f').fn(() => {}); | ||
|
||
g.test('f,g').fn(() => {}); | ||
|
||
g.test('f,g,h') | ||
.params([{}, { x: 0 }, { x: 0, y: 0 }]) | ||
.fn(() => {}); | ||
|
||
g.test('case_depth_2_in_single_child_test') | ||
.params([{ x: 0, y: 0 }]) | ||
.fn(() => {}); | ||
|
||
g.test('statuses,debug').fn(t => { | ||
t.debug('debug'); | ||
}); | ||
|
||
g.test('statuses,skip').fn(t => { | ||
t.skip('skip'); | ||
}); | ||
|
||
g.test('statuses,warn').fn(t => { | ||
t.warn('warn'); | ||
}); | ||
|
||
g.test('statuses,fail').fn(t => { | ||
t.fail('fail'); | ||
}); | ||
|
||
g.test('statuses,throw').fn(() => { | ||
unreachable('unreachable'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const description = 'Description for d.spec.ts'; | ||
|
||
import { makeTestGroup } from '../../../common/framework/test_group.js'; | ||
import { UnitTest } from '../../../unittests/unit_test.js'; | ||
|
||
export const g = makeTestGroup(UnitTest); | ||
|
||
g.test('test_depth_2,in_single_child_file').fn(() => {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const description = 'Description for r.spec.ts'; | ||
|
||
import { makeTestGroup } from '../../../common/framework/test_group.js'; | ||
import { UnitTest } from '../../../unittests/unit_test.js'; | ||
|
||
export const g = makeTestGroup(UnitTest); |