Bug 1301212 - Enabled code coverage for xpcshell. draft
authorCody Tran <cody_tran95@hotmail.com>
Fri, 28 Oct 2016 12:54:59 -0400
changeset 431053 4bbd8d9dc9551c4e9748f4dff8120e79803c3f47
parent 430774 7b19ce59d482a7a09798ae1d589218919217e5ec
child 535351 f2623516f0028d1778e0144105c420ae5efe7404
push id33988
push usercody_tran95@hotmail.com
push dateFri, 28 Oct 2016 16:55:59 +0000
bugs1301212
milestone52.0a1
Bug 1301212 - Enabled code coverage for xpcshell. MozReview-Commit-ID: IdijsF9HRW9
taskcluster/ci/desktop-test/test-sets.yml
taskcluster/ci/desktop-test/tests.yml
--- a/taskcluster/ci/desktop-test/test-sets.yml
+++ b/taskcluster/ci/desktop-test/test-sets.yml
@@ -86,11 +86,12 @@ windows-vm-tests:
 # windows-hw-tests:
 #    - mochitest-clipboard
 #    - mochitest-gpu
 #    - mochitest-other
 
 ccov-code-coverage-tests:
     - mochitest-browser-chrome
     - mochitest-devtools-chrome
+    - xpcshell
 
 jsdcov-code-coverage-tests:
     - mochitest-browser-chrome
\ No newline at end of file
--- a/taskcluster/ci/desktop-test/tests.yml
+++ b/taskcluster/ci/desktop-test/tests.yml
@@ -550,16 +550,20 @@ web-platform-tests-wdspec:
                     - remove_executables.py
         extra-options:
             - --test-type=wdspec
 
 xpcshell:
     description: "xpcshell test run"
     suite: xpcshell
     treeherder-symbol: tc-X()
+    run-on-projects:
+        by-test-platform:
+            linux64-ccov/opt: []
+            default: ['all']
     chunks:
         by-test-platform:
             # win.*: 1
             linux64/debug: 10
             default: 8
     max-run-time: 5400
     e10s: false
     mozharness:
@@ -568,12 +572,17 @@ xpcshell:
         config:
             by-test-platform:
                 win.*:
                     - unittests/win_taskcluster_unittest.py
                 default:
                     - unittests/linux_unittest.py
                     - remove_executables.py
         extra-options:
-            - --xpcshell-suite=xpcshell
+            by-test-platform:
+                linux64-ccov/opt:
+                    - --xpcshell-suite=xpcshell
+                    - --code-coverage
+                default:
+                    - --xpcshell-suite=xpcshell
     # Bug 1281241: migrating to m3.large instances
     instance-size: legacy
     allow-software-gl-layers: false