Is there any way to run Tensorflow unit tests manually? I want to perform sanity checks while modifying TF source code.
I see there are many _test.py files with classes that perform many test operations and I can't figure out how to run them. There should be an easy way?
The easiest way to run the TensorFlow unit tests is using Bazel, assuming you have downloaded the source from Git:
# All tests (for C++ changes).
$ bazel test //tensorflow/...
# All Python tests (for Python front-end changes).
$ bazel test //tensorflow/python/...
# All tests (with GPU support).
$ bazel test -c opt --config=cuda //tensorflow/...
$ bazel test -c opt --config=cuda //tensorflow/python/...