Skip to content

Add functional tests using PHPUnit - #692

Open
pmeulen wants to merge 15 commits into
mainfrom
feature/functional-tests
Open

pmeulen wants to merge 15 commits into
mainfrom
feature/functional-tests

Conversation

@pmeulen

@pmeulen pmeulen commented Nov 16, 2026

Copy link
Copy Markdown
Member

These tests run standalone in the Stepup-Gateway, driven by phpunit, with no outside dependencies. The fixtures were captured from the OpenConext-devconf stepup environment (the non smoketest version).

@johanib johanib left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All in all I think this is a solid PR that adds a lot of actual coverage!
It does not appear to have issues with expiring fixtures etc

An important aspect is that this new suite expects new features to also have the required functional test coverage. That requires running the scenario through devconf, but since the process of importing the fixture via the convert script described here, that is covered 👍

I think some cleanup is needed, see separate threads.

Comment thread README.md Resolved
Comment thread ci/qa/phpunit-functional Resolved
Comment thread docs/FUNCTIONAL_TESTING.md Resolved
Comment thread README.md Resolved
Comment thread tests/Functional/bin/anonymise-string Resolved
@github-project-automation github-project-automation Bot moved this from New to Backlog in PHP development Nov 17, 2026
pmeulen and others added 11 commits November 17, 2026 19:04
These tests run standalone in the Stepup-Gateway, driven by phpunit, with no outside dependencies. Fixtures were captured from the OpenConext-devconf stepup environment (the non smoketest version).
Trigger coverage only when XDEBUG_MODE=coverage is specified
Co-authored-by: Johan Kromhout <60608181+johanib@users.noreply.github.com>
Remove dependency on test environment
Remove unneeded nelmio_security configuraton
@pmeulen
pmeulen force-pushed the feature/functional-tests branch from d2f8103 to b29a4c4 Compare November 17, 2026 18:08
@pmeulen

pmeulen commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

Applied suggestions by @johanib and rebased on main.

@pmeulen

pmeulen commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

@johanib ready to merge as far as I'm concerned.

@johanib johanib left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

The commits arent squased, so remember to use squash merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants