Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

deci_core_recipe_test_suite_runner.py 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  1. import sys
  2. import unittest
  3. from tests.recipe_training_tests.automatic_batch_selection_single_gpu_test import TestAutoBatchSelectionSingleGPU
  4. from tests.recipe_training_tests.coded_qat_launch_test import CodedQATLuanchTest
  5. # from tests.recipe_training_tests.shortened_recipes_accuracy_test import ShortenedRecipesAccuracyTests
  6. class CoreUnitTestSuiteRunner:
  7. def __init__(self):
  8. self.test_loader = unittest.TestLoader()
  9. self.recipe_tests_suite = unittest.TestSuite()
  10. self._add_modules_to_unit_tests_suite()
  11. self.test_runner = unittest.TextTestRunner(verbosity=3, stream=sys.stdout)
  12. def _add_modules_to_unit_tests_suite(self):
  13. """
  14. _add_modules_to_unit_tests_suite - Adds unit tests to the Unit Tests Test Suite
  15. :return:
  16. """
  17. self.recipe_tests_suite.addTest(self.test_loader.loadTestsFromModule(CodedQATLuanchTest))
  18. # self.recipe_tests_suite.addTest(self.test_loader.loadTestsFromModule(ShortenedRecipesAccuracyTests))
  19. self.recipe_tests_suite.addTest(self.test_loader.loadTestsFromModule(TestAutoBatchSelectionSingleGPU))
  20. if __name__ == "__main__":
  21. unittest.main()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...