-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Clean up and expand coverage of testId, moduleId, module config
* Focus `reporter-html/config-*` just on what the HTML Reporter does. * Add `cli/fixture/config-*` for the general behaviour. * Add `urlparams-*` for the end-to-end behaviour from a real URL parameter, parsing it, and applying the config.
- Loading branch information
Showing
19 changed files
with
263 additions
and
138 deletions.
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
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,53 @@ | ||
QUnit.config.moduleId = [ "127c21dd", "c1d6ebd4", "7d89af3b" ]; | ||
|
||
QUnit.test( "global test", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
|
||
QUnit.module( "module A scoped", function() { | ||
QUnit.test( "test A1", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
|
||
QUnit.module( "module B nested", function() { | ||
QUnit.test( "test B1", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
} ); | ||
|
||
QUnit.module( "module C nested", function() { | ||
QUnit.test( "test C1", function( assert ) { | ||
assert.true( true, "run module C" ); | ||
} ); | ||
} ); | ||
|
||
QUnit.test( "test A2", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
} ); | ||
|
||
QUnit.module( "module D scoped", function() { | ||
QUnit.test( "test D1", function( assert ) { | ||
assert.true( true, "run module D" ); | ||
} ); | ||
|
||
QUnit.module( "module E nested", function() { | ||
QUnit.test( "test E1", function( assert ) { | ||
assert.true( true, "run module D" ); | ||
} ); | ||
} ); | ||
|
||
QUnit.test( "test D2", function( assert ) { | ||
assert.true( true, "run module D" ); | ||
} ); | ||
} ); | ||
|
||
QUnit.module( "module E flat" ); | ||
QUnit.test( "test E1", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
|
||
QUnit.module( "module F flat" ); | ||
QUnit.test( "test F1", function( assert ) { | ||
assert.true( true, "run module F" ); | ||
} ); |
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,44 @@ | ||
QUnit.config.testId = [ "94e5e740", "9e89c63c", "066af31c", "c7ae85af" ]; | ||
|
||
QUnit.test( "test 1", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
|
||
QUnit.test( "test 2", function( assert ) { | ||
assert.true( true, "run global test 2" ); | ||
} ); | ||
|
||
QUnit.module( "module A", function() { | ||
QUnit.test( "test 1", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
|
||
QUnit.module( "module B", function() { | ||
QUnit.test( "test 1", function( assert ) { | ||
assert.true( true, "run AB test 1" ); | ||
} ); | ||
} ); | ||
|
||
QUnit.module( "module C", function() { | ||
QUnit.test( "test 1", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
QUnit.test( "test 2", function( assert ) { | ||
assert.true( true, "run AC test 2" ); | ||
} ); | ||
} ); | ||
|
||
QUnit.test( "test 2", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
} ); | ||
|
||
QUnit.test( "test 3", function( assert ) { | ||
assert.true( false ); | ||
} ); | ||
|
||
QUnit.module( "module D", function() { | ||
QUnit.test( "test 1", function( assert ) { | ||
assert.true( true, "run D test 1" ); | ||
} ); | ||
} ); |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>QUnit</title> | ||
<link rel="stylesheet" href="../qunit/qunit.css"> | ||
</head> | ||
<body> | ||
<div id="qunit"></div> | ||
<script src="../qunit/qunit.js"></script> | ||
<script src="urlparams-module.js"></script> | ||
</body> | ||
</html> |
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,16 @@ | ||
if ( !location.search ) { | ||
location.replace( "?module=Foo" ); | ||
} | ||
|
||
QUnit.module( "Foo" ); | ||
|
||
QUnit.test( "Foo test", function( assert ) { | ||
assert.true( true, "run module Foo" ); | ||
assert.strictEqual( QUnit.config.module, "Foo", "parsed config" ); | ||
} ); | ||
|
||
QUnit.module( "Bar" ); | ||
|
||
QUnit.test( "Bar test", function( assert ) { | ||
assert.true( false ); | ||
} ); |
Oops, something went wrong.