TIBHannover / ojsGeo

OJS Geoplugin
https://projects.tib.eu/komet/
GNU General Public License v3.0
4 stars 3 forks source link

Add test setup #47

Closed nuest closed 2 years ago

nuest commented 2 years ago

Useful resources to check out:

nuest commented 2 years ago

I created a configuration based on the configuration file https://github.com/RBoelter/twitterBlock/blob/stable-3_2_1/.github/workflows/twitter_ci_tests.yml

Trying to get to run the project for OJS 3.3.x (the example uses only 3.2.1), and to get it to run locally with act, both failed. Issues were fore example a missing cypress installation (extra installation step did not remedy the issue)

Run cd ~/ojs
sh: 1: cypress: not found
Error: Process completed with exit code 127.

or that a connection to the database was not possible, maybe because of 127.0.0.1 != localhost and name resolving issues with the used containers.

The confirugation is preserved as the file integration_test_yml.

nuest commented 2 years ago

Test setup works on my fork:

image

nuest commented 2 years ago

Map testing: https://medium.com/geoman-blog/testing-maps-e2e-with-cypress-ba9e5d903b2b

nuest commented 2 years ago

Map testing: https://medium.com/geoman-blog/testing-maps-e2e-with-cypress-ba9e5d903b2b

nuest commented 2 years ago

image

image