bug 1540655: mozbuild: add puppeteer test flavor; r=firefox-build-system-reviewers,chmanchester draft
authorpulselistener
Fri, 16 Aug 2019 13:22:20 +0000
changeset 2220730 5de2f4622f3ce60ef9bf2ce100e35c229fc2dea0
parent 2220729 eac66660e5ed3d22817c9a37f662c0a6e45a6142
child 2220731 f9f8c820826bbfefe7eb61d678d1c7aa51bd0558
push id406994
push userreviewbot
push dateFri, 16 Aug 2019 13:23:14 +0000
treeherdertry@5f50de08beda [default view] [failures only]
reviewersfirefox-build-system-reviewers, chmanchester
bugs1540655
milestone70.0a1
bug 1540655: mozbuild: add puppeteer test flavor; r=firefox-build-system-reviewers,chmanchester The Puppeteer test flavour are functional tests for the CDP-based Puppeteer library from Google, that we want to run against our implementation of CDP for Firefox. They are distinct from the Firefox Puppeteer tests based on Marionette. Differential Revision: https://phabricator.services.mozilla.com/D37012 Differential Diff: PHID-DIFF-fmelgfwzw7kum7ab2mw4
python/mozbuild/mozbuild/testing.py
--- a/python/mozbuild/mozbuild/testing.py
+++ b/python/mozbuild/mozbuild/testing.py
@@ -63,26 +63,27 @@ TEST_MANIFESTS = dict(
     MARIONETTE_WEBAPI=('marionette', 'marionette', '.', False),
 
     MOCHITEST=('mochitest', 'testing/mochitest', 'tests', True),
     MOCHITEST_CHROME=('chrome', 'testing/mochitest', 'chrome', True),
     WEBRTC_SIGNALLING_TEST=('steeplechase', 'steeplechase', '.', True),
     XPCSHELL_TESTS=('xpcshell', 'xpcshell', '.', True),
 )
 
-# Reftests have their own manifest format and are processed separately.
+# reftests, wpt, and puppeteer all have their own manifest formats
+# and are processed separately
 REFTEST_FLAVORS = ('crashtest', 'reftest')
-
-# Web platform tests have their own manifest format and are processed separately.
+PUPPETEER_FLAVORS = ('puppeteer',)
 WEB_PLATFORM_TESTS_FLAVORS = ('web-platform-tests',)
 
 
 def all_test_flavors():
     return ([v[0] for v in TEST_MANIFESTS.values()] +
             list(REFTEST_FLAVORS) +
+            list(PUPPETEER_FLAVORS) +
             list(WEB_PLATFORM_TESTS_FLAVORS))
 
 
 class TestInstallInfo(object):
     def __init__(self):
         self.seen = set()
         self.pattern_installs = []
         self.installs = []