Skip to content

Commit

Permalink
GPII-2773: Update coverage client and test fixtures to address incons…
Browse files Browse the repository at this point in the history
…istent test reporting.
  • Loading branch information
the-t-in-rtf committed Dec 15, 2017
1 parent 8556432 commit 0fec501
Show file tree
Hide file tree
Showing 72 changed files with 77 additions and 124 deletions.
8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -20,7 +20,10 @@
"main": "./src/module/fluid.js",
"scripts": {
"prepublish": "npm run buildDists && npm run buildStylus",
"pretest": "node node_modules/rimraf/bin.js reports/* coverage/*",
"pretest": "npm run pretest:cleanup && npm run pretest:instrument && npm run pretest:postInstrument",
"pretest:cleanup": "node node_modules/rimraf/bin.js reports/* coverage/* instrumented/*",
"pretest:instrument": "node node_modules/istanbul/lib/cli.js instrument --complete-copy src --output instrumented/src",
"pretest:postInstrument": "node node_modules/.bin/rimraf instrumented/src/lib && node node_modules/.bin/ncp src/lib instrumented/src/lib",
"test": "npm run test:browser && npm run test:node",
"test:browser": "node node_modules/testem/testem.js ci --file tests/testem.js",
"test:node": "node node_modules/istanbul/lib/cli.js cover tests/node-tests/basic-node-tests.js --report none --print none",
Expand All @@ -40,7 +43,7 @@
"devDependencies": {
"eslint-config-fluid": "1.2.0",
"fluid-grunt-eslint": "18.1.2",
"gpii-testem": "1.0.2-dev.20171120T141143Z.86d40cd",
"gpii-testem": "1.0.3-dev.20171215T151816Z.7d9350d",
"grunt": "1.0.1",
"grunt-contrib-clean": "1.1.0",
"grunt-contrib-compress": "1.4.3",
Expand All @@ -54,6 +57,7 @@
"grunt-shell": "2.1.0",
"istanbul": "git://github.com/the-t-in-rtf/istanbul#828eb930add7bd663ca20649a917f3f3829e48c5",
"lodash": "4.17.4",
"ncp": "2.0.0",
"rimraf": "2.6.2",
"testem": "1.18.4"
}
Expand Down
58 changes: 28 additions & 30 deletions tests/all-tests.html
Expand Up @@ -13,64 +13,63 @@
<link rel="stylesheet" href="lib/qunit/addons/composite/qunit-composite.css">
<script src="lib/qunit/js/qunit.js"></script>

<script src="lib/qunit/addons/composite/qunit-composite.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="lib/qunit/addons/composite/qunit-composite.js"></script>

<!--
command line search:
find . -name "*-test.html" | awk '{print "\""$1"\","}'
find . -name "*-test.html" | awk '{print "\""$1"\","}' | sort
-->
<script>
QUnit.testSuites("Framework Tests", [
"./framework-tests/core/html/Caching-test.html",
"./framework-tests/core/html/DataBinding-test.html",
"./framework-tests/core/html/FluidDebugging-test.html",
"./framework-tests/core/html/FluidDocument-test.html",
"./framework-tests/core/html/FluidIoC-test.html",
"./framework-tests/core/html/FluidIoCStandalone-test.html",
"./framework-tests/core/html/FluidIoCView-test.html",
"./framework-tests/core/html/FluidJS-test.html",
"./framework-tests/core/html/FluidJSStandalone-test.html",
"./framework-tests/core/html/FluidDebugging-test.html",
"./framework-tests/core/html/FluidPromises-test.html",
"./framework-tests/core/html/FluidDocument-test.html",
"./framework-tests/core/html/FluidRequests-test.html",
"./framework-tests/core/html/FluidView-test.html",
"./framework-tests/core/html/Keyboard-a11y-test.html",
"./framework-tests/core/html/ModelTransformation-test.html",
"./framework-tests/core/html/DataBinding-test.html",
"./framework-tests/core/html/FluidView-test.html",
"./framework-tests/core/html/Caching-test.html",
"./framework-tests/core/html/FluidRequests-test.html",
"./framework-tests/core/html/ResourceLoader-test.html",
"./framework-tests/renderer/html/Renderer-test.html",
"./framework-tests/core/html/FluidIoC-test.html",
"./framework-tests/core/html/FluidIoCStandalone-test.html",
"./framework-tests/core/html/FluidIoCView-test.html",
"./framework-tests/core/html/WebWorker-test.html",
"./framework-tests/enhancement/html/ContextAwareness-test.html",
"./framework-tests/renderer/html/RendererUtilities-test.html",
"./framework-tests/preferences/html/AuxBuilder-test.html",
"./framework-tests/preferences/html/Builder-test.html",
"./framework-tests/preferences/html/Enactors-test.html",
"./framework-tests/preferences/html/SelfVoicingEnactor-test.html",
"./framework-tests/preferences/html/SeparatedPanelPrefsEditor-test.html",
"./framework-tests/preferences/html/SeparatedPanelPrefsEditorResponsive-test.html",
"./framework-tests/preferences/html/FullNoPreviewPrefsEditor-test.html",
"./framework-tests/preferences/html/FullPreviewPrefsEditor-test.html",
"./framework-tests/preferences/html/PageEnhancer-test.html",
"./framework-tests/preferences/html/Panels-test.html",
"./framework-tests/preferences/html/SelfVoicingPanel-test.html",
"./framework-tests/preferences/html/PrefsEditor-test.html",
"./framework-tests/preferences/html/PrimaryBuilder-test.html",
"./framework-tests/preferences/html/SelfVoicingEnactor-test.html",
"./framework-tests/preferences/html/SelfVoicingPanel-test.html",
"./framework-tests/preferences/html/SeparatedPanelPrefsEditor-test.html",
"./framework-tests/preferences/html/SeparatedPanelPrefsEditorResponsive-test.html",
"./framework-tests/preferences/html/Store-test.html",
"./framework-tests/preferences/html/UIEnhancer-test.html",
"./framework-tests/preferences/html/PrefsEditor-test.html",
"./framework-tests/preferences/html/URLUtilities-test.html"
"./framework-tests/preferences/html/URLUtilities-test.html",
"./framework-tests/renderer/html/Renderer-test.html",
"./framework-tests/renderer/html/RendererUtilities-test.html"
]);
QUnit.testSuites("Testing Framework Tests", [
"./test-core/testTests/html/jqUnit-test.html",
"./test-core/testTests/html/ConditionalTestUtils-test.html",
"./test-core/testTests/html/IoCTesting-test.html",
"./test-core/testTests/html/IoCTestingView-test.html",
"./test-core/testTests/html/ConditionalTestUtils-test.html"
"./test-core/testTests/html/jqUnit-test.html"
]);
QUnit.testSuites("Component Tests", [
"./component-tests/inlineEdit/html/InlineEdit-test.html",
"./component-tests/pager/html/Pager-test.html",
"./component-tests/overviewPanel/html/OverviewPanel-test.html",
"./component-tests/pager/html/PagedTable-test.html",
"./component-tests/pager/html/Pager-test.html",
"./component-tests/progress/html/Progress-test.html",
"./component-tests/reorderer/html/AriaLabeller-test.html",
"./component-tests/reorderer/html/GeometricManager-test.html",
Expand All @@ -79,14 +78,14 @@
"./component-tests/reorderer/html/NestedReorderer-test.html",
"./component-tests/reorderer/html/ReorderList-test.html",
"./component-tests/reorderer/html/Scheduler-test.html",
"./component-tests/tableOfContents/html/TableOfContents-test.html",
"./component-tests/slidingPanel/html/SlidingPanel-test.html",
"./component-tests/switch/html/Switch-test.html",
"./component-tests/tableOfContents/html/TableOfContents-test.html",
"./component-tests/tabs/html/Tabs-test.html",
"./component-tests/textToSpeech/html/TextToSpeech-test.html",
"./component-tests/textfieldControl/html/Textfield-test.html",
"./component-tests/textfieldControl/html/TextfieldSlider-test.html",
"./component-tests/textfieldControl/html/TextfieldStepper-test.html",
"./component-tests/textToSpeech/html/TextToSpeech-test.html",
"./component-tests/tabs/html/Tabs-test.html",
"./component-tests/tooltip/html/Tooltip-test.html",
"./component-tests/uiOptions/html/UIOptions-test.html",
"./component-tests/uploader/html/DemoUploadManager-test.html",
Expand All @@ -95,8 +94,7 @@
"./component-tests/uploader/html/FileQueueView-test.html",
"./component-tests/uploader/html/HTML5UploaderSupport-test.html",
"./component-tests/uploader/html/Uploader-test.html",
"./component-tests/uploader/html/UploaderCompatibility-test.html",
"./component-tests/overviewPanel/html/OverviewPanel-test.html"
"./component-tests/uploader/html/UploaderCompatibility-test.html"
]);
</script>
</head>
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/inlineEdit/html/InlineEdit-test.html
Expand Up @@ -34,7 +34,6 @@
<script src="../../../lib/jquery-ui/js/jquery.simulate.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data and test supports -->
Expand Down
Expand Up @@ -28,7 +28,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data and test supports -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/pager/html/PagedTable-test.html
Expand Up @@ -36,7 +36,6 @@
<script src="../../../test-core/utils/js/IoCTestUtils.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are used for tests that have been written using this page as data -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/pager/html/Pager-test.html
Expand Up @@ -31,7 +31,6 @@
<script src="../../../lib/jquery-ui/js/jquery.simulate.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are used for tests that have been written using this page as data -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/progress/html/Progress-test.html
Expand Up @@ -22,7 +22,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit-browser.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
Expand Up @@ -32,7 +32,6 @@
<script src="../../../component-tests/reorderer/js/ReordererTestUtils.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/AriaLabellerTests.js"></script>
Expand Down
Expand Up @@ -21,7 +21,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit-browser.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
Expand Up @@ -40,7 +40,6 @@
<script src="../js/ReordererTestUtils.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are the tests -->
Expand Down
Expand Up @@ -29,7 +29,6 @@
<script src="../../../lib/jquery-ui/js/jquery.simulate.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are used for tests that have been written using this page as data -->
Expand Down
Expand Up @@ -28,7 +28,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit-browser.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are used for tests that have been written using this page as data -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/reorderer/html/ReorderList-test.html
Expand Up @@ -28,7 +28,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit-browser.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are used for tests that have been written using this page as data -->
Expand Down
3 changes: 1 addition & 2 deletions tests/component-tests/reorderer/html/Scheduler-test.html
Expand Up @@ -26,8 +26,7 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are used for tests that have been written using this page as sample data. -->
<script src="../js/SchedulerTests.js"></script>
Expand Down
Expand Up @@ -26,7 +26,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/switch/html/Switch-test.html
Expand Up @@ -22,7 +22,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
Expand Up @@ -28,7 +28,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit-browser.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/tabs/html/Tabs-test.html
Expand Up @@ -23,7 +23,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data and test supports -->
Expand Down
Expand Up @@ -32,7 +32,6 @@
<script src="../../../test-core/utils/js/ConditionalTestUtils.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data and test supports -->
Expand Down
Expand Up @@ -27,7 +27,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
Expand Up @@ -28,7 +28,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
Expand Up @@ -32,7 +32,6 @@
<script src="../../../test-core/utils/js/IoCTestUtils.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/tooltip/html/Tooltip-test.html
Expand Up @@ -26,7 +26,6 @@
<script src="../../../test-core/utils/js/IoCTestUtils.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data and test supports -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/uiOptions/html/UIOptions-test.html
Expand Up @@ -51,7 +51,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<!-- These are tests that have been written using this page as data and test supports -->
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/uploader/all-tests.html
Expand Up @@ -9,7 +9,6 @@
<script src="../../lib/qunit/js/qunit.js"></script>
<script src="../../lib/qunit/addons/composite/qunit-composite.js"></script>

<script src="/testem.js"></script>

<!--
command line search:
Expand Down
Expand Up @@ -31,7 +31,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/DemoUploadManagerTests.js"></script>
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/uploader/html/ErrorPanel-test.html
Expand Up @@ -23,7 +23,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit-browser.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/ErrorPanelTests.js"></script>
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/uploader/html/FileQueue-test.html
Expand Up @@ -22,7 +22,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/FileQueueTests.js"></script>
Expand Down
Expand Up @@ -33,7 +33,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit-browser.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/FileQueueViewTests.js"></script>
Expand Down
Expand Up @@ -32,7 +32,6 @@
<script src="../../../test-core/utils/js/IoCTestUtils.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/UploaderTestUtilities.js"></script>
Expand Down
1 change: 0 additions & 1 deletion tests/component-tests/uploader/html/Uploader-test.html
Expand Up @@ -33,7 +33,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/UploaderTestUtilities.js"></script>
Expand Down
Expand Up @@ -36,7 +36,6 @@
<script src="../../../test-core/jqUnit/js/jqUnit.js"></script>

<!-- Required to ensure we sent coverage data at the end of the test run on this page -->
<script src="/testem.js"></script>
<script src="/coverage/client/coverageSender.js"></script>

<script src="../js/UploaderCompatibilityTests.js"></script>
Expand Down

0 comments on commit 0fec501

Please sign in to comment.