Skip to content

Commit 0359c18

Browse files
committed
refactor make file a bit
1 parent 876ba50 commit 0359c18

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,16 @@ test-4edge: install ## Run tests against the prod API via the edge-endpoint (ne
4949
${PYTEST} ${PROFILING_ARGS} ${TEST_ARGS} ${EDGE_FILTERS} test
5050

5151
test-local: install ## Run tests against a localhost API (needs GROUNDLIGHT_API_TOKEN and a local API server)
52-
GROUNDLIGHT_ENDPOINT="http://localhost:8000/" ${PYTEST} ${TEST_ARGS} ${CLOUD_FILTERS} test
52+
$(eval GROUNDLIGHT_ENDPOINT="http://localhost:8000/")
53+
$(MAKE) test
5354

5455
test-integ: install ## Run tests against the integ API server (needs GROUNDLIGHT_API_TOKEN)
55-
GROUNDLIGHT_ENDPOINT="https://api.integ.groundlight.ai/" ${PYTEST} ${TEST_ARGS} ${CLOUD_FILTERS} test
56+
$(eval GROUNDLIGHT_ENDPOINT="https://api.integ.groundlight.ai/")
57+
$(MAKE) test
5658

5759
test-dev: install ## Run tests against a dev API server (needs GROUNDLIGHT_API_TOKEN and properly configured dns-hostmap)
58-
GROUNDLIGHT_ENDPOINT="https://api.dev.groundlight.ai" ${PYTEST} ${TEST_ARGS} ${CLOUD_FILTERS} test
60+
$(eval GROUNDLIGHT_ENDPOINT="https://api.dev.groundlight.ai/")
61+
$(MAKE) test
5962

6063
test-docs: install ## Run the example code and tests in our docs against the prod API (needs GROUNDLIGHT_API_TOKEN)
6164
${PYTEST} --markdown-docs ${TEST_ARGS} docs README.md

0 commit comments

Comments
 (0)