Skip to content

test(behat): bootstrap integration test infrastructure - #3115

Open
Koc wants to merge 1 commit into
masterfrom
feature/behat-integration-tests
Open

Koc wants to merge 1 commit into
masterfrom
feature/behat-integration-tests

Conversation

@Koc

@Koc Koc commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a minimal Behat setup so the app's OCS API can be exercised in CI:

  • vendor-bin/behat with behat, guzzle and phpunit (Assert)
  • behat.yml with default (nextcloud.test) and ci (localhost:8080) profiles
  • FeatureContext providing OCS request plumbing, user provisioning and circle/member management steps
  • first feature file covering GET /circles and the members endpoints
  • integration GitHub Actions workflow (sqlite/pgsql/mysql matrix) following the phpunit template

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI (Assisted-by: Devin:SWE-2-high)

@codecov

codecov Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc
Koc force-pushed the feature/behat-integration-tests branch from a15950d to beb5faf Compare November 2, 2026 00:18
@Koc
Koc marked this pull request as ready for review November 2, 2026 00:18

@artonge artonge 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.

What we did currently is to base the integrations tests on PHPUnit here: https://github.com/nextcloud/circles/tree/master/tests/unit/lib/Controller

The reason we did that is mostly because we wanted to avoid Behat and the layer of indirection it brings.

Is there a use case that you want to test which can't be tested with PHPUnit?

@artonge

artonge commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Alternatively, we can also test the API through playwright. Even though it is much heavier than Behat, and even more so than PHPUnit.

This branch has not been deployed

No deployments
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