forked from facebook/TestSlide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 748 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 748 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
27
28
29
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
.PHONY: all
all: test
.PHONY: black_check
black_check:
if command -v black; then black --check testslide/ tests/ ; fi
.PHONY: unittest_tests
unittest_tests:
python -m unittest discover --verbose --failfast -p '*_unittest.py'
.PHONY: testslide_tests
testslide_tests:
python -m testslide.cli --fail-fast tests/*_testslide.py
.PHONY: docs
docs:
cd docs && if python -c 'import sys ; sys.exit(1 if sys.version.startswith("2.") else 0)' ; then make html ; fi
.PHONY: test
test: black_check unittest_tests testslide_tests docs
install:
pip install -e .[test,build]