Bug 1312823 - Add devtools console mocha tests draft
authornchevobbe <nchevobbe@mozilla.com>
Tue, 11 Apr 2017 12:03:12 +0200
changeset 560493 029d39ce393ed17bd2e959618e4a08d86bc8ee8c
parent 559608 731639fccc709a4dd95fed7e9dda88efb2227906
child 623717 0c6cc38260ce6d6e3b491343665a5808922190b2
push id53436
push userbmo:nchevobbe@mozilla.com
push dateTue, 11 Apr 2017 14:06:41 +0000
bugs1312823
milestone55.0a1
Bug 1312823 - Add devtools console mocha tests MozReview-Commit-ID: FIclymeviQh
taskcluster/ci/test/test-sets.yml
taskcluster/ci/test/tests.yml
--- a/taskcluster/ci/test/test-sets.yml
+++ b/taskcluster/ci/test/test-sets.yml
@@ -13,16 +13,17 @@
 # Universal tests
 #
 # Tests that run just about everywhere; common-tests is the shared core, with
 # a few add-on test sets that are included or omitted on some platforms.
 
 common-tests:
     - cppunit
     - crashtest
+    - devtools-console
     - firefox-ui-functional-local
     - firefox-ui-functional-remote
     - gtest
     - jittest
     - jsreftest
     - marionette
     - mochitest
     - mochitest-a11y
@@ -112,27 +113,29 @@ ccov-code-coverage-tests:
     - mochitest-media
     - mochitest-webgl
     - reftest
     - reftest-no-accel
     - web-platform-tests
     - xpcshell
 
 jsdcov-code-coverage-tests:
+    - devtools-console
     - mochitest
     - mochitest-browser-chrome
     - mochitest-devtools-chrome
     - xpcshell
 
 ##
 # Test sets still being greened up in various ways
 
 windows-vm-tests:
     - cppunit
     - crashtest
+    - devtools-console
     - gtest
     - jittest
     - jsreftest
     - marionette
     - mochitest
     - mochitest-a11y
     - mochitest-browser-chrome
     - mochitest-devtools-chrome
@@ -151,16 +154,17 @@ windows-gpu-tests:
 # these tests currently run on hardware, but may migrate above when validated
 # see https://bugzilla.mozilla.org/show_bug.cgi?id=1280474#c36
 #    - mochitest-chrome
 #    - mochitest-clipboard
 
 macosx64-tests-debug:
     - cppunit
     - crashtest
+    - devtools-console
     - external-media-tests-base
     - external-media-tests-youtube
     - gtest
     - jittest
     - jsreftest
     - marionette
     - mochitest
     - mochitest-a11y
@@ -185,16 +189,17 @@ macosx64-tests-talos:
     - talos-g4
     - talos-other
     - talos-svgr
     - talos-tp5o
 
 linux32-tests:
     - cppunit
     - crashtest
+    - devtools-console
     - firefox-ui-functional-local
     - firefox-ui-functional-remote
     - gtest
     - jittest
     - jsreftest
     - marionette
     - mochitest
     - mochitest-a11y
--- a/taskcluster/ci/test/tests.yml
+++ b/taskcluster/ci/test/tests.yml
@@ -87,16 +87,41 @@ crashtest:
                             - remove_executables.py
                             - unittests/mac_unittest.py
                         linux.*:
                             - unittests/linux_unittest.py
                             - remove_executables.py
                 extra-options:
                     - --reftest-suite=crashtest
 
+devtools-console:
+    description: "Devtools console mocha tests"
+    suite: devtools/console
+    treeherder-symbol: tc-Dt-c()
+    treeherder:
+        symbol: tc-Dt-c()
+        kind: test
+        tier: 3
+    worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
+    worker:
+        implementation: docker-worker
+        docker-image: {in-tree: "lint"}
+        max-run-time: 1800
+    run:
+        using: run-task
+        command: >
+            cd /home/worker/checkouts/gecko/devtools/client/webconsole &&
+            #wget -O build.tar.bz2 {{build_url}} &&
+            #tar jxvf build.tar.bz2 && # if that {{build_url}} thing still works, you should have firefox here: ./firefox/firefox-bin
+            npm install &&
+            npm test
+    run-on-projects:
+        - integration
+        - release
+
 external-media-tests-base:
     description: "External Media Test run"
     suite: external-media-tests
     unittest-try-name: 'media-tests'
     treeherder-symbol: tc-VP(b-m)
     e10s: false
     tier: 2
     max-run-time: 5400
@@ -1141,17 +1166,17 @@ talos-dromaeojs:
 talos-g1:
     description: "Talos g1"
     suite: talos
     talos-try-name: g1
     treeherder-symbol: tc-T(g1)
     run-on-projects:
         by-test-platform:
             linux64-stylo/.*: ['mozilla-central', 'try']
-            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1163,17 +1188,17 @@ talos-g2:
     description: "Talos g2"
     suite: talos
     talos-try-name: g2
     treeherder-symbol: tc-T(g2)
     max-run-time: 3600
     run-on-projects:
         by-test-platform:
             linux64-stylo/.*: ['mozilla-central', 'try']
-            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
                     - remove_executables.py
@@ -1183,17 +1208,17 @@ talos-g2:
 talos-g3:
     description: "Talos g3"
     suite: talos
     talos-try-name: g3
     treeherder-symbol: tc-T(g3)
     run-on-projects:
         by-test-platform:
             linux64-stylo/.*: ['mozilla-central', 'try']
-            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1204,17 +1229,17 @@ talos-g3:
 talos-g4:
     description: "Talos g4"
     suite: talos
     talos-try-name: g4
     treeherder-symbol: tc-T(g4)
     run-on-projects:
         by-test-platform:
             linux64-stylo/.*: ['mozilla-central', 'try']
-            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1225,17 +1250,17 @@ talos-g4:
 talos-other:
     description: "Talos other"
     suite: talos
     talos-try-name: other
     treeherder-symbol: tc-T(o)
     run-on-projects:
         by-test-platform:
             linux64-stylo/.*: ['mozilla-central', 'try']
-            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py