-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rename integration API tests to acceptance #30493
Conversation
This looks quite easy to do. Paths of various PSR loader things are all relative, so it should "just work". "integration" tests in apps will need to be modified similarly so they find the If people like the look of this, I can get the associated bits ready easily. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this name change.
Codecov Report
@@ Coverage Diff @@
## master #30493 +/- ##
=========================================
Coverage 61.9% 61.9%
Complexity 19065 19065
=========================================
Files 1091 1091
Lines 61488 61488
=========================================
Hits 38063 38063
Misses 23425 23425 Continue to review full report at Codecov.
|
Please state a reason - a "I don't like" is not a valid decline. Generally speaking - we've talked before - the current "integration" tests are end-to-end tests of the API. They do not focus on testing the integration of various components (units) with each other |
6d619a5
to
6958bcc
Compare
Integration tests are checking that some of the parts of a system are working well together. I am not considering the backend as the final system that the user is going to use. It requires a frontend or a client (desktop or mobile). I guess the confusion comes with the two kinds of integration testing, the ones close to the unit tests, using different classes and these following the behaviour of the api/webdav endpoints. Having said this, if you all agree with the change, please go ahead. |
In the case of the "server", the core server repo "product" is:
Testing the external "black-box" behaviour of any of these can be termed "acceptance" testing. In our case, we are using the same Behat-Gherkin framework do drive these tests. So it is possible to (one day) put them all together in a |
f9ea30e
to
975fb2b
Compare
I don't mind if we keep the specification/feature files in separate test folders, but I think it makes sense to build a common library / framework for how to blackbox test owncloud (wether its via api/occ/ui) |
975fb2b
to
61a44bd
Compare
Discussed in QA meeting - please review again.
Backport stable10 #30499 |
Related changes required in app repos so they use
|
All related PRs have been merged. This is finished. |
Documentation issue owncloud-archive/documentation#3854 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Rename the
tests/integration
folder totests/acceptance
and related search/replace.Related Issue
owncloud/QA#517
Motivation and Context
The API tests that are currently referred to as "integration" tests are really part of the acceptance tests.
Rename the folder to
acceptance
. Then as a later step we can sort out merging the UI acceptance tests into here also (which already share bits of code inTestHelpers
and a similar Behat-Gherkin framework)How Has This Been Tested?
Run some of the API tests locally.
CI will know if I missed anything.
Types of changes
Checklist: