85c0e50c21
Test client integration (client loads) Test auth integration (client logs in) Test backend integration (accept request) - broken Test autoupdate integration (sends au to client) Add manual cypress tests Add dockered cypress tests Add Readme Add test execution to makefile Add test execution to github-actions TODO: - Create user for tests - flush db after every test
45 lines
1.6 KiB
Makefile
45 lines
1.6 KiB
Makefile
run-integration-tests:
|
|
@echo "Start OpenSlides Dev"
|
|
make run-dev ARGS="-d"
|
|
@echo "Start integration tests"
|
|
make cypress-docker
|
|
docker-compose -f integration/docker-compose.yml up
|
|
@echo "Stop OpenSlides Dev"
|
|
make stop-dev
|
|
|
|
run-service-tests:
|
|
git submodule foreach 'make run-tests'
|
|
|
|
build-dev:
|
|
git submodule foreach 'make build-dev'
|
|
make -C proxy build-dev
|
|
|
|
run-dev: | build-dev
|
|
docker-compose -f docker/docker-compose.dev.yml up $(ARGS)
|
|
|
|
stop-dev:
|
|
docker-compose -f docker/docker-compose.dev.yml down --volumes --remove-orphans
|
|
|
|
copy-node-modules:
|
|
docker-compose -f docker/docker-compose.dev.yml exec client bash -c "cp -r /app/node_modules/ /app/src/"
|
|
mv openslides-client/client/src/node_modules/ openslides-client/client/
|
|
|
|
reload-proxy:
|
|
docker-compose -f docker/docker-compose.dev.yml exec -w /etc/caddy proxy caddy reload
|
|
|
|
services-to-master:
|
|
# Note: This script updates all submodules to upstream/master[1]. For setting the submodules to the linked
|
|
# commits use `git submodule update`. The `upstream` remote must be set up correctly to point to the main repo.
|
|
#
|
|
# [1] ...or main, or whatever branch the OS4 one is. See .gitmodules.
|
|
git submodule foreach -q --recursive 'git checkout $(git config -f $$toplevel/.gitmodules submodule.$$name.branch || echo master); git pull upstream $$(git config -f $$toplevel/.gitmodules submodule.$$name.branch || echo master)'
|
|
|
|
cypress-open:
|
|
cd integration; npm run cypress:open
|
|
|
|
cypress-run:
|
|
cd integration; npm run cypress:run
|
|
|
|
cypress-docker:
|
|
docker-compose -f integration/docker-compose.yml build
|
|
docker-compose -f integration/docker-compose.yml up
|