Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Schröer <splitt3r@users.noreply.github.com>2017-11-07 17:43:45 +0300
committerGitHub <noreply@github.com>2017-11-07 17:43:45 +0300
commit6e11d77656cbc9387f275d0b71de73fbafda16fa (patch)
tree5effb3b584aac3e61f68ae0bf7377b3f9aac0d9d /Makefile
parent12511a1ba45a0ba457af48a8b26d8cb271ad0827 (diff)
Added Unit tests (#224)
* Added first unit test * Fixed user constraint problem * Fix tests * Update CommentMapperTest.php * Fixed FactoryMuffin + unit tests * Fixed PHP 5.6 error * Started adding scrutinizer coverage * Added UnitTestCase class * Added badges to README * Changed app logo name The icon is showing up in the app list now. * Added screenshot replacement to Makefile * Added oC branded screenshots * Added test skeletons * Added further factories * Added all basic crud unit tests * Fixed @depends in unit tests * Small doc block update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0a281a06..a2953bac 100644
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,9 @@ else
--exclude="css/*.scss" \
./ $(build_source_directory)/$(app_name)
+ # We need to replace Nc screenshot urls with the oC ones
+ sed -i -E "s~(<screenshot>)([^<]*).(png|jpg|jpeg)(</screenshot>)~\1\2-oc.\3\4~" $(build_source_directory)/$(app_name)/appinfo/info.xml
+
@if [ -f $(oc_cert_directory)/$(app_name).key ]; then \
echo "Creating integrity file..."; \
php ../../occ integrity:sign-app --privateKey="$(oc_cert_directory)/$(app_name).key" --certificate="$(oc_cert_directory)/$(app_name).crt" --path "$(build_source_directory)/$(app_name)"; \
@@ -144,5 +147,5 @@ endif
.PHONY: test
test: composer
- $(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.xml
+ $(CURDIR)/vendor/phpunit/phpunit/phpunit --coverage-clover clover.xml -c phpunit.xml
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml