Exemple #1
0
  def testAllArguments(self):
    arguments = dict(_BASE_ARGUMENTS)
    arguments['test'] = 'test_name'
    quest = run_gtest.RunGTest.FromDict(arguments)

    extra_args = ['--gtest_filter=test_name'] + _BASE_EXTRA_ARGS
    expected = run_gtest.RunGTest('server', {'key': 'value'}, extra_args)
    self.assertEqual(quest, expected)
Exemple #2
0
    def testAllArguments(self):
        arguments = dict(_BASE_ARGUMENTS)
        arguments['test'] = 'test_name'
        quest = run_gtest.RunGTest.FromDict(arguments)

        extra_args = ['--gtest_filter=test_name'] + _BASE_EXTRA_ARGS
        expected = run_gtest.RunGTest('server', run_test_test.DIMENSIONS,
                                      extra_args, _BASE_SWARMING_TAGS)
        self.assertEqual(quest, expected)
 def testAllArguments(self):
     quest = run_gtest.RunGTest.FromDict({
         'dimensions': {
             'key': 'value'
         },
         'test': 'test_name',
     })
     expected = run_gtest.RunGTest({'key': 'value'}, _ALL_ARGUMENTS)
     self.assertEqual(quest, expected)
Exemple #4
0
 def testMinimumArguments(self):
   quest = run_gtest.RunGTest.FromDict(_BASE_ARGUMENTS)
   expected = run_gtest.RunGTest('server', {'key': 'value'}, _BASE_EXTRA_ARGS)
   self.assertEqual(quest, expected)
Exemple #5
0
 def testMinimumArguments(self):
     quest = run_gtest.RunGTest.FromDict(_BASE_ARGUMENTS)
     expected = run_gtest.RunGTest('server', run_test_test.DIMENSIONS,
                                   _BASE_EXTRA_ARGS, _BASE_SWARMING_TAGS)
     self.assertEqual(quest, expected)
 def testMinimumArguments(self):
     quest = run_gtest.RunGTest.FromDict({'dimensions': {'key': 'value'}})
     expected = run_gtest.RunGTest({'key': 'value'}, _MIN_ARGUMENTS)
     self.assertEqual(quest, expected)