예제 #1
0
 def test_solve_suite_names_with_testlevelsplit_option_added(self):
     pabotsuitenames = self._psuitenames(
         '195524bdb66da94d08decc859867c5fb0b6cf95b',
         '97d170e1550eee4afc0af065b78cda302a97674c',
         'no-suites-from-option',
         'd16c45532ef9a1b7ddfdc1498df20c66fa19d10f', *self._all_with_suites)
     with open(".pabotsuitenames", "w") as f:
         f.writelines(pabotsuitenames)
     pabot_args = dict(self._pabot_args)
     pabot_args["testlevelsplit"] = True
     test_names = pabot.solve_suite_names(outs_dir=self._outs_dir,
                                          datasources=self._datasources,
                                          options=self._options,
                                          pabot_args=pabot_args)
     self._assert_equal_names([self._all_tests], test_names)
     expected = self._psuitenames(
         '195524bdb66da94d08decc859867c5fb0b6cf95b',
         '65f95c924ba97541f47949701c4e3c51192a5b43',
         'no-suites-from-option',
         '65a9d53314cba3caf6df9056585b2673c9f42e4b', *self._all_with_tests)
     with pabot._open_pabotsuitenames('r') as f:
         actual = f.readlines()
         if PY2:
             actual = [l.decode("utf-8") for l in actual]
     self.assertEqual(expected, actual)
예제 #2
0
파일: test_pabot.py 프로젝트: amochin/pabot
 def test_solve_suite_names_with_testlevelsplit_option_added(self):
     pabotsuitenames = self._psuitenames(
         'ab91eabfa9603fdcb718d17b5ea7069d4cc9d05a',
         '97d170e1550eee4afc0af065b78cda302a97674c',
         'no-suites-from-option',
         'dfbbcc2e769bbaba4f27715359689d07bdff987f',
         *self._all_with_suites)
     with open(".pabotsuitenames", "w") as f:
         f.writelines(pabotsuitenames)
     pabot_args = dict(self._pabot_args)
     pabot_args["testlevelsplit"] = True
     test_names = pabot.solve_suite_names(outs_dir=self._outs_dir,
                                           datasources=self._datasources,
                                           options=self._options,
                                           pabot_args=pabot_args)
     self._assert_equal_names([self._all_tests], test_names)
     expected = self._psuitenames(
         'ab91eabfa9603fdcb718d17b5ea7069d4cc9d05a',
         '65f95c924ba97541f47949701c4e3c51192a5b43',
         'no-suites-from-option',
         '6125d7102d8e7fa4da754be3875716f43cd9dd5c',
         *self._all_with_tests
         )
     with pabot._open_pabotsuitenames('r') as f:
         actual = f.readlines()
         if PY2:
             actual = [l.decode("utf-8") for l in actual]
     self.assertEqual(expected, actual)
예제 #3
0
 def test_solve_suite_names_with_testlevelsplit_option(self):
     if os.path.isfile(".pabotsuitenames"):
         os.remove(".pabotsuitenames")
     pabot_args = dict(self._pabot_args)
     pabot_args["testlevelsplit"] = True
     test_names = pabot.solve_suite_names(outs_dir=self._outs_dir,
                                          datasources=self._datasources,
                                          options=self._options,
                                          pabot_args=pabot_args)
     self._assert_equal_names([self._all_tests], test_names)
     expected = self._psuitenames(
         datasource_hash, '65f95c924ba97541f47949701c4e3c51192a5b43',
         'no-suites-from-option',
         '2e3dd316145460f6bcf2f368332c0e1f1eaf25cb', *self._all_with_tests)
     with pabot._open_pabotsuitenames('r') as f:
         actual = f.readlines()
         if PY2:
             actual = [l.decode("utf-8") for l in actual]
     self.assertEqual(expected, actual)
예제 #4
0
 def test_solve_suite_names_with_testlevelsplit_option(self):
     if os.path.isfile(".pabotsuitenames"):
         os.remove(".pabotsuitenames")
     pabot_args = dict(self._pabot_args)
     pabot_args["testlevelsplit"] = True
     test_names = pabot.solve_suite_names(outs_dir=self._outs_dir,
                                          datasources=self._datasources,
                                          options=self._options,
                                          pabot_args=pabot_args)
     self._assert_equal_names([self._all_tests], test_names)
     expected = self._psuitenames(
         '195524bdb66da94d08decc859867c5fb0b6cf95b',
         '65f95c924ba97541f47949701c4e3c51192a5b43',
         'no-suites-from-option',
         '65a9d53314cba3caf6df9056585b2673c9f42e4b', *self._all_with_tests)
     with pabot._open_pabotsuitenames('r') as f:
         actual = f.readlines()
         if PY2:
             actual = [l.decode("utf-8") for l in actual]
     self.assertEqual(expected, actual)
예제 #5
0
 def test_solve_suite_names_with_testlevelsplit_option_added(self):
     pabotsuitenames = self._psuitenames(
         datasource_hash, '97d170e1550eee4afc0af065b78cda302a97674c',
         'no-suites-from-option', file_hash, *self._all_with_suites)
     with open(".pabotsuitenames", "w") as f:
         f.writelines(pabotsuitenames)
     pabot_args = dict(self._pabot_args)
     pabot_args["testlevelsplit"] = True
     test_names = pabot.solve_suite_names(outs_dir=self._outs_dir,
                                          datasources=self._datasources,
                                          options=self._options,
                                          pabot_args=pabot_args)
     self._assert_equal_names([self._all_tests], test_names)
     expected = self._psuitenames(
         datasource_hash, '65f95c924ba97541f47949701c4e3c51192a5b43',
         'no-suites-from-option',
         '2e3dd316145460f6bcf2f368332c0e1f1eaf25cb', *self._all_with_tests)
     with pabot._open_pabotsuitenames('r') as f:
         actual = f.readlines()
         if PY2:
             actual = [l.decode("utf-8") for l in actual]
     self.assertEqual(expected, actual)
예제 #6
0
파일: test_pabot.py 프로젝트: amochin/pabot
 def test_solve_suite_names_with_testlevelsplit_option(self):
     if os.path.isfile(".pabotsuitenames"):
         os.remove(".pabotsuitenames")
     pabot_args = dict(self._pabot_args)
     pabot_args["testlevelsplit"] = True
     test_names = pabot.solve_suite_names(outs_dir=self._outs_dir,
                                           datasources=self._datasources,
                                           options=self._options,
                                           pabot_args=pabot_args)
     self._assert_equal_names([self._all_tests], test_names)
     expected = self._psuitenames(
         'ab91eabfa9603fdcb718d17b5ea7069d4cc9d05a',
         '65f95c924ba97541f47949701c4e3c51192a5b43',
         'no-suites-from-option',
         '6125d7102d8e7fa4da754be3875716f43cd9dd5c',
         *self._all_with_tests
         )
     with pabot._open_pabotsuitenames('r') as f:
         actual = f.readlines()
         if PY2:
             actual = [l.decode("utf-8") for l in actual]
     self.assertEqual(expected, actual)