forked from tensorflow/minigo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.py
More file actions
26 lines (23 loc) · 763 Bytes
/
Copy pathrun_tests.py
File metadata and controls
26 lines (23 loc) · 763 Bytes
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
import sys
sys.path.insert(0, '.')
import unittest
# Importing all of these modules causes all the relevant flags to get defined.
# They thus become overrideable, either with cmd line args to run_tests or via
# the test_flags file.
import test_coords
import test_dual_net
import test_features
import test_go
import test_mcts
import test_preprocessing
import test_sgf_wrapper
import test_shipname
import test_strategies
import test_symmetries
import test_utils
from absl import flags
if __name__ == '__main__':
# Parse test flags and initialize default flags
flags.FLAGS(['ignore', '--flagfile=tests/test_flags'])
# Replicate the behavior of `python -m unittest discover tests`
unittest.main(module=None, argv=['run_tests.py', 'discover', '.'])