Skip to content

Commit 2212e36

Browse files
committed
add explicit makefile targets for tests for easy tab-completion
1 parent 7080c48 commit 2212e36

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

Makefile

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,86 @@ oreilly.%.asciidoc: %.asciidoc
5858
test_%: %.html $(TMPDIR)
5959
pytest -s --tb=short ./tests/$@.py
6060

61+
# exhaustively list for nice tab-completion
62+
#
63+
.PHONY: test_chapter_01
64+
test_chapter_01: chapter_01.html $(TMPDIR)
65+
pytest -s --tb=short ./tests/test_chapter_01.py
66+
.PHONY: test_chapter_02_unittest
67+
test_chapter_02_unittest: chapter_02_unittest.html $(TMPDIR)
68+
pytest -s --tb=short ./tests/test_chapter_02_unittest.py
69+
.PHONY: test_chapter_03_unit_test_first_view
70+
test_chapter_03_unit_test_first_view: chapter_03_unit_test_first_view.html $(TMPDIR)
71+
pytest -s --tb=short ./tests/test_chapter_03_unit_test_first_view.py
72+
.PHONY: test_chapter_04_philosophy_and_refactoring
73+
test_chapter_04_philosophy_and_refactoring: chapter_04_philosophy_and_refactoring.html $(TMPDIR)
74+
pytest -s --tb=short ./tests/test_chapter_04_philosophy_and_refactoring.py
75+
.PHONY: test_chapter_05_post_and_database
76+
test_chapter_05_post_and_database: chapter_05_post_and_database.html $(TMPDIR)
77+
pytest -s --tb=short ./tests/test_chapter_05_post_and_database.py
78+
.PHONY: test_chapter_06_explicit_waits_1
79+
test_chapter_06_explicit_waits_1: chapter_06_explicit_waits_1.html $(TMPDIR)
80+
pytest -s --tb=short ./tests/test_chapter_06_explicit_waits_1.py
81+
.PHONY: test_chapter_07_working_incrementally
82+
test_chapter_07_working_incrementally: chapter_07_working_incrementally.html $(TMPDIR)
83+
pytest -s --tb=short ./tests/test_chapter_07_working_incrementally.py
84+
.PHONY: test_chapter_08_prettification
85+
test_chapter_08_prettification: chapter_08_prettification.html $(TMPDIR)
86+
pytest -s --tb=short ./tests/test_chapter_08_prettification.py
87+
.PHONY: test_chapter_09_docker
88+
test_chapter_09_docker: chapter_09_docker.html $(TMPDIR)
89+
pytest -s --tb=short ./tests/test_chapter_09_docker.py
90+
.PHONY: test_chapter_10_production_readiness
91+
test_chapter_10_production_readiness: chapter_10_production_readiness.html $(TMPDIR)
92+
pytest -s --tb=short ./tests/test_chapter_10_production_readiness.py
93+
.PHONY: test_chapter_11_ansible
94+
test_chapter_11_ansible: chapter_11_ansible.html $(TMPDIR)
95+
pytest -s --tb=short ./tests/test_chapter_11_ansible.py
96+
.PHONY: test_chapter_12_organising_test_files
97+
test_chapter_12_organising_test_files: chapter_12_organising_test_files.html $(TMPDIR)
98+
pytest -s --tb=short ./tests/test_chapter_12_organising_test_files.py
99+
.PHONY: test_chapter_13_database_layer_validation
100+
test_chapter_13_database_layer_validation: chapter_13_database_layer_validation.html $(TMPDIR)
101+
pytest -s --tb=short ./tests/test_chapter_13_database_layer_validation.py
102+
.PHONY: test_chapter_14_simple_form
103+
test_chapter_14_simple_form: chapter_14_simple_form.html $(TMPDIR)
104+
pytest -s --tb=short ./tests/test_chapter_14_simple_form.py
105+
.PHONY: test_chapter_15_advanced_forms
106+
test_chapter_15_advanced_forms: chapter_15_advanced_forms.html $(TMPDIR)
107+
pytest -s --tb=short ./tests/test_chapter_15_advanced_forms.py
108+
.PHONY: test_chapter_javascript
109+
test_chapter_javascript: chapter_javascript.html $(TMPDIR)
110+
pytest -s --tb=short ./tests/test_chapter_javascript.py
111+
.PHONY: test_chapter_deploying_validation
112+
test_chapter_deploying_validation: chapter_deploying_validation.html $(TMPDIR)
113+
pytest -s --tb=short ./tests/test_chapter_deploying_validation.py
114+
.PHONY: test_chapter_spiking_custom_auth
115+
test_chapter_spiking_custom_auth: chapter_spiking_custom_auth.html $(TMPDIR)
116+
pytest -s --tb=short ./tests/test_chapter_spiking_custom_auth.py
117+
.PHONY: test_chapter_mocking
118+
test_chapter_mocking: chapter_mocking.html $(TMPDIR)
119+
pytest -s --tb=short ./tests/test_chapter_mocking.py
120+
.PHONY: test_chapter_fixtures_and_wait_decorator
121+
test_chapter_fixtures_and_wait_decorator: chapter_fixtures_and_wait_decorator.html $(TMPDIR)
122+
pytest -s --tb=short ./tests/test_chapter_fixtures_and_wait_decorator.py
123+
.PHONY: test_chapter_server_side_debugging
124+
test_chapter_server_side_debugging: chapter_server_side_debugging.html $(TMPDIR)
125+
pytest -s --tb=short ./tests/test_chapter_server_side_debugging.py
126+
.PHONY: test_chapter_outside_in
127+
test_chapter_outside_in: chapter_outside_in.html $(TMPDIR)
128+
pytest -s --tb=short ./tests/test_chapter_outside_in.py
129+
.PHONY: test_chapter_purist_unit_tests
130+
test_chapter_purist_unit_tests: chapter_purist_unit_tests.html $(TMPDIR)
131+
pytest -s --tb=short ./tests/test_chapter_purist_unit_tests.py
132+
.PHONY: test_chapter_CI
133+
test_chapter_CI: chapter_CI.html $(TMPDIR)
134+
pytest -s --tb=short ./tests/test_chapter_CI.py
135+
.PHONY: test_chapter_page_pattern
136+
test_chapter_page_pattern: chapter_page_pattern.html $(TMPDIR)
137+
pytest -s --tb=short ./tests/test_chapter_page_pattern.py
138+
139+
140+
61141
.PHONY: silent_test_%
62142
silent_test_%: %.html $(TMPDIR)
63143
pytest --tb=short ./tests/$(subst silent_,,$@).py

0 commit comments

Comments
 (0)