Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save InTheCloudDan/e90c24bc2c9ff7eba4757f62d511e08f to your computer and use it in GitHub Desktop.
Save InTheCloudDan/e90c24bc2c9ff7eba4757f62d511e08f to your computer and use it in GitHub Desktop.
from absl import flags
from absl.testing import absltest as basetest
from absl.testing import xml_reporter
import unittest
import os
FLAGS = flags.FLAGS
FLAGS.mark_as_parsed()
if __name__ == '__main__':
loader = basetest.TestLoader()
suite = loader.discover(start_dir=os.getcwd(), pattern='*_test.py')
runner = xml_reporter.TextAndXMLTestRunner()
runner.run(suite)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment