Skip to content

Commit

Permalink
Rename integration API tests to acceptance
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Feb 15, 2018
1 parent 2e46cb6 commit 6958bcc
Show file tree
Hide file tree
Showing 66 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ timestampedNode('SLAVE') {
'''
}

stage 'Integration Testing'
executeAndReport('tests/integration/output/*.xml') {
stage 'Acceptance Testing'
executeAndReport('tests/acceptance/output/*.xml') {
sh '''phpenv local 7.0
rm -rf config/config.php data/*
./occ maintenance:install --admin-pass=admin
make clean-test-integration
make test-integration OC_TEST_ALT_HOME=1
make clean-test-acceptance
make test-acceptance OC_TEST_ALT_HOME=1
'''
}

Expand Down
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ help:
@echo -e "make test-php\t\t\trun all PHP tests"
@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-integration\t\trun integration tests"
@echo -e "make test-acceptance\t\trun 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 @@ -174,9 +174,9 @@ test-js: $(nodejs_deps)
test-js-debug: $(nodejs_deps)
NODE_PATH='$(NODE_PREFIX)/node_modules' $(KARMA) start tests/karma.config.js

.PHONY: test-integration
test-integration: $(composer_dev_deps)
$(MAKE) -C tests/integration \
.PHONY: test-acceptance
test-acceptance: $(composer_dev_deps)
$(MAKE) -C tests/acceptance \
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)
Expand All @@ -186,19 +186,19 @@ test-php-lint: $(composer_dev_deps)
$(composer_deps)/bin/parallel-lint --exclude lib/composer --exclude build .

.PHONY: test
test: test-php-lint test-php test-js test-integration
test: test-php-lint test-php test-js test-acceptance

.PHONY: clean-test-integration
clean-test-integration:
$(MAKE) -C tests/integration clean
.PHONY: clean-test-acceptance
clean-test-acceptance:
$(MAKE) -C tests/acceptance clean

.PHONY: clean-test-results
clean-test-results:
rm -Rf tests/autotest-*results*.xml
$(MAKE) -C tests/integration clean
$(MAKE) -C tests/acceptance clean

.PHONY: clean-test
clean-test: clean-test-integration clean-test-results
clean-test: clean-test-acceptance clean-test-results

#
# Documentation
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

function loadDirectory($path) {
if (stripos(basename($path), 'integration') !== false) {
if (stripos(basename($path), 'acceptance') !== false) {
return;
}
if (strcasecmp(basename($path), 'ui') === 0) {
Expand Down

0 comments on commit 6958bcc

Please sign in to comment.