def testMinimumArguments(self): quest = run_browser_test.RunBrowserTest.FromDict(_BASE_ARGUMENTS) expected = run_browser_test.RunBrowserTest('server', run_test_test.DIMENSIONS, _BASE_EXTRA_ARGS, _BASE_SWARMING_TAGS) self.assertEqual(quest, expected)
def testMinimumArguments(self): quest = run_browser_test.RunBrowserTest.FromDict(_BASE_ARGUMENTS) expected = run_browser_test.RunBrowserTest( 'server', run_test_test.DIMENSIONS, _BASE_EXTRA_ARGS, _BASE_SWARMING_TAGS, ['luci-auth', 'context', '--', 'some_browser_test'], 'out/Release') self.assertEqual(quest, expected)
def testAllArguments(self): arguments = dict(_BASE_ARGUMENTS) filter_string = 'BrowserTestClass*:SomeOtherBrowserTestClass*' arguments['test-filter'] = filter_string quest = run_browser_test.RunBrowserTest.FromDict(arguments) extra_args = ['--gtest_filter=%s' % filter_string] + _BASE_EXTRA_ARGS expected = run_browser_test.RunBrowserTest( 'server', run_test_test.DIMENSIONS, extra_args, _BASE_SWARMING_TAGS, ['luci-auth', 'context', '--', 'some_browser_test'], 'out/Release') self.assertEqual(quest, expected)
def testAllArguments(self): arguments = dict(_BASE_ARGUMENTS) filter_string = 'BrowserTestClass*:SomeOtherBrowserTestClass*' arguments['test-filter'] = filter_string quest = run_browser_test.RunBrowserTest.FromDict(arguments) extra_args = ['--gtest_filter=%s' % filter_string] + _BASE_EXTRA_ARGS expected = run_browser_test.RunBrowserTest('server', run_test_test.DIMENSIONS, extra_args) self.assertEqual(quest, expected)