Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce end to end tests #360

Merged
merged 5 commits into from
Jan 12, 2024
Merged

Introduce end to end tests #360

merged 5 commits into from
Jan 12, 2024

Conversation

Art4
Copy link
Collaborator

@Art4 Art4 commented Jan 11, 2024

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.

docker compose build
docker compose up -d

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.

@Art4 Art4 added this to the v2.5.0 milestone Jan 11, 2024
@Art4 Art4 self-assigned this Jan 11, 2024
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (19d3eb5) 96.72% compared to head (44226fc) 96.72%.

Additional details and impacted files
@@            Coverage Diff            @@
##               v2.x     #360   +/-   ##
=========================================
  Coverage     96.72%   96.72%           
  Complexity      534      534           
=========================================
  Files            27       27           
  Lines          1467     1467           
=========================================
  Hits           1419     1419           
  Misses           48       48           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Art4 Art4 marked this pull request as ready for review January 11, 2024 13:22
@Art4 Art4 requested a review from kbsali January 11, 2024 13:22
@Art4 Art4 merged commit 4c29e41 into kbsali:v2.x Jan 12, 2024
12 checks passed
@Art4 Art4 deleted the introduce-e2e-tests branch January 12, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants