Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces end to end (e2e) tests. This tests allows us to use the locally installed Redmine server from #336 to run API requests against it. This helps us to test, understand and reverse engineer the behavior and responses of different Redmine versions. I've used this method to check the group features in #359. And I will use this tests to implement the new endpoints to close/archive a project (#192).
To run the tests you have to start the docker container. This will setup the Redmine server and database. I switched from MariaDB to SQLite btw.
To install all dependencies of php-redmine-api run:
docker compose exec -u 1000 php composer update
The end2end tests can be run with:
docker compose exec -u 1000 php composer run end2end
I was not able to run this tests in Github Actions, so if anybody has some hints for me this would be great.