Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/+testsinpackage.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
run tests in the tests folder inside the package in case the folder exists for bobtemplates.plone template compatibility @erral
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ i18n: $(VENV_FOLDER) ## Update locales
.PHONY: test
test: $(VENV_FOLDER) ## run tests
@$(BIN_FOLDER)/pytest
@if [ -d "src/{{ cookiecutter.python_package_name | package_path}}/tests" ]; then $(BIN_FOLDER)/pytest src/{{ cookiecutter.python_package_name | package_path }}/tests; fi

.PHONY: test-coverage
test-coverage: $(VENV_FOLDER) ## run tests with coverage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ i18n: $(VENV_FOLDER) ## Update locales
.PHONY: test
test: $(VENV_FOLDER) ## run tests
@$(BIN_FOLDER)/pytest
@if [ -d "src/{{ cookiecutter.python_package_name | package_path }}/tests" ]; then $(BIN_FOLDER)/pytest src/{{ cookiecutter.python_package_name | package_path }}/tests; fi

.PHONY: test-coverage
test-coverage: $(VENV_FOLDER) ## run tests with coverage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ i18n: $(VENV_FOLDER) ## Update locales
.PHONY: test
test: $(VENV_FOLDER) ## run tests
@$(BIN_FOLDER)/pytest
@if [ -d "src/{{ cookiecutter.python_package_name | package_path}}/tests" ]; then $(BIN_FOLDER)/pytest src/{{ cookiecutter.python_package_name | package_path }}/tests; fi

.PHONY: test-coverage
test-coverage: $(VENV_FOLDER) ## run tests with coverage
Expand Down