Skip to content

Commit

Permalink
Merge pull request #32892 from owncloud/stable10-make-targets-for-acc…
Browse files Browse the repository at this point in the history
…eptance-tests

[stable10] Make targets for acceptance tests
  • Loading branch information
phil-davis committed Sep 27, 2018
2 parents 2821f7c + 4c45402 commit 76d0c43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ pipeline:
commands:
- touch /drone/saved-settings.sh
- . /drone/saved-settings.sh
- ./tests/drone/test-acceptance.sh --remote
- make test-acceptance-api TESTING_REMOTE_SYSTEM=true
when:
matrix:
TEST_SUITE: api
Expand All @@ -403,7 +403,7 @@ pipeline:
commands:
- touch /drone/saved-settings.sh
- . /drone/saved-settings.sh
- ./tests/drone/test-acceptance.sh --remote
- make test-acceptance-webui TESTING_REMOTE_SYSTEM=true
when:
matrix:
TEST_SUITE: selenium
Expand Down
19 changes: 10 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ help:
@echo -e "make test-php-style\t\trun PHP code style checks"
@echo -e "make test-js\t\t\trun Javascript tests"
@echo -e "make test-js-debug\t\trun Javascript tests in debug mode (continuous)"
@echo -e "make test-acceptance\t\trun acceptance tests"
@echo -e "make test-acceptance-api\trun API acceptance tests"
@echo -e "make test-acceptance-webui\trun webUI acceptance tests"
@echo -e "make clean-test\t\t\tclean test results"
@echo
@echo It is also possible to run individual PHP test files with the following command:
Expand Down Expand Up @@ -196,13 +197,13 @@ test-js: $(nodejs_deps) $(js_deps) $(core_vendor)
test-js-debug: $(nodejs_deps) $(js_deps) $(core_vendor)
NODE_PATH='$(NODE_PREFIX)/node_modules' $(KARMA) start tests/karma.config.js

.PHONY: test-acceptance
test-acceptance: $(composer_dev_deps)
$(MAKE) -C tests/acceptance \
BEHAT_SUITE=$(BEHAT_SUITE) \
OC_TEST_ALT_HOME=$(OC_TEST_ALT_HOME) \
OC_TEST_ENCRYPTION_ENABLED=$(OC_TEST_ENCRYPTION_ENABLED) \
OC_TEST_ENCRYPTION_MASTER_KEY_ENABLED=$(OC_TEST_ENCRYPTION_MASTER_KEY_ENABLED)
.PHONY: test-acceptance-api
test-acceptance-api: $(composer_dev_deps)
./tests/acceptance/run.sh --type api

.PHONY: test-acceptance-webui
test-acceptance-webui: $(composer_dev_deps)
./tests/acceptance/run.sh --type webUI

.PHONY: test-php-lint
test-php-lint: $(composer_dev_deps)
Expand All @@ -222,7 +223,7 @@ test-php-phan: $(PHAN_BIN)
php $(PHAN_BIN) --config-file .phan/config.php --require-config-exists

.PHONY: test
test: test-php-lint test-php-style test-php test-js test-acceptance
test: test-php-lint test-php-style test-php test-js test-acceptance-api test-acceptance-webui

.PHONY: clean-test-acceptance
clean-test-acceptance:
Expand Down

0 comments on commit 76d0c43

Please sign in to comment.