-
Notifications
You must be signed in to change notification settings - Fork 112
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
[Tests-Only] Implement expected failures file #1036
[Tests-Only] Implement expected failures file #1036
Conversation
local API acceptance tests: https://cloud.drone.io/cs3org/reva/2063/4/7
oC10 API acceptance tests: https://cloud.drone.io/cs3org/reva/2063/4/8
Looks good. I will squash the commits. |
PR #1041 could happen first, to get the core commit id really current. Then I can rebase this PR. |
@phil-davis I've merged #1041 |
Rebased and passed:
@labkode ready for review |
I rebased and force-pushed just now, to check that CI is still all good. |
@phil-davis I am having a hard time to understand this PR as I don't have enough knowledge of the previous ownCloud PHP testing stack. Perhaps we can have a quick call and you guide me through? |
10pm here and I was about to head for bed. I rebased to clean out some commits for the core commit bumps that are now already merged in Last week we implemented a feature in the API test runner code that allows A lot of the code here is infrastructure to support the test code. The upstream test code in Anyway, llet me know when would be a good time to chat tomorrow or... |
@phil-davis your comment helped understand. Rebase and I'll merge it. Also, there should be a better way to avoid bumping core commit id for the testing suite. Why not relying on master always? |
@labkode rebased
That might be OK to do now. Previously we relied on the Now that we can control the expected failures locally in each reva repo there should be much less change to the core API test suite, and we can locally adjust to what test scenarios should pass/fail. After this PR, I can make a PR to remove the core commit id. And we can see how often we get CI broken because of some change in |
Note: I also have #1057 to come after this. It adds more bug-demo scenarios to the local tests, and can split the test pipelines (because the full set of API acceptance tests is getting a bit long!) But I will sort that out after getting this first infrastructure merged. |
@labkode ready for review |
Implements
EXPECTED_FAILURES_FILE
the same as owncloud/ocis-reva#402Adjust
.drone.star
so that it runs all the core API acceptance tests except~@notToImplementOnOCIS&&~@toImplementOnOCIS
- i.e. except the tests specifically tagged in core PR [Tests-Only] Tag tests to implement on ocis or not owncloud/core#37736Specify an
EXPECTED_FAILURES_FILE
and put it in a list of all the acceptance test scenarios that are expected to fail. These are things that pass on oC10 but currently have a problem on cs3org/revaAdd the infrastructure to be able to run local API acceptance test scenarios (
Makefile
test-acceptance-api
target,composer.json
,behat.yml
,...)Add local scenarios that demonstrate existing bad behavior in OCIS/reva. These are copied from the scenarios that are currently in core and tagged
skipOnOcV10
. I have moved just a few of them to demonstrate this. I will move the rest of them in a later PR.This PR helps with issue owncloud/ocis-reva#282 - when some examples in the Example Table of a Scenario Outline pass and some fail, we will run all of them and the ones that fail can be listed in
EXPECTED_FAILURES_FILE
It also removes the need to change core API acceptance test code or feature files as we fix OCIS/reva issues. We can manage the local acceptance tests here in the local repo, and also can manage the list of expected failures here in the local repo (hopefully the list gets shorter as we implement and fix things!)