Skip to content

Commit

Permalink
Merge pull request #16 from monarch-initiative/unit-test-to-makefile
Browse files Browse the repository at this point in the history
add unit test to makefile
  • Loading branch information
cmungall authored Mar 27, 2023
2 parents ff27732 + 3d99ae4 commit 8bd2f0c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ all_pydantic: $(patsubst %, $(TEMPLATE_DIR)/%.py, $(TEMPLATES))
all_projects: $(patsubst %, projects/%, $(TEMPLATES))
all_docs: $(patsubst %, docs/%/index.md, $(TEMPLATES))

test:
$(RUN) pytest
test: unit-test

unit-test:
$(RUN) python -m unittest discover tests.unit

integration-test:
$(RUN) python -m unittest


$(TEMPLATE_DIR)/%.py: src/$(PACKAGE)/templates/%.yaml
$(RUN) gen-pydantic $< > $@.tmp && mv $@.tmp $@
Expand Down

0 comments on commit 8bd2f0c

Please sign in to comment.