Skip to content

Commit

Permalink
Merge pull request #120 from trotttrotttrott/feature/unit-test-make-t…
Browse files Browse the repository at this point in the history
…argets

Unit Test Make Targets
  • Loading branch information
morgante authored Jan 17, 2019
2 parents d31e523 + 41426f7 commit c617306
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ check_headers: ## Check that source files have appropriate boilerplate
@echo "Checking file headers"
@python test/verify_boilerplate.py

.PHONY: test_migrate
test_migrate:
@echo "Testing migrate script"
@python test/helpers/test_migrate.py

.PHONY: test_preconditions
test_preconditions:
@echo "Testing preconditions script"
@python test/scripts/preconditions/test_preconditions.py

# Unit tests
.PHONY: test_unit
test_unit: test_migrate test_preconditions

# Integration tests
.PHONY: test_integration
test_integration: ## Run integration tests
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/preconditions/test_preconditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
os.path.abspath(
os.path.join(
os.path.dirname(__file__),
'../../../scripts/preconditions')))
'../../../modules/core_project_factory/scripts/preconditions')))

import preconditions # noqa: E402

Expand Down

0 comments on commit c617306

Please sign in to comment.