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 PlatformAgnosticAssertions trait which handles cross platform issues - adds windows CI coverage #120
Conversation
I went ahead and added the PlatformAgnosticAssertions for 3 test-cases so we can get a better feeling whether this approach will fit for the whole codebase. |
...alueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php
Outdated
Show resolved
Hide resolved
24d14ad
to
19cac69
Compare
@sabbelasichon I guess these test errors are unrelated to my changes?
|
10800ee
to
2bbfd33
Compare
2bbfd33
to
e574e50
Compare
e574e50
to
2205b55
Compare
anyone any ideas how to debug this 'Out of memory' error in the windows github action 'tests for rules-tests' build? running the testsuite locally takes ages on my pc (and doesnt run out of memory)? |
Seems to be around here:
Will need further debugging to know more tho. UPDATE: welp it looks like my theory about clearing up data in
A very significant time increase there - unsure why tho TBH. But at least now it's failing due to failing tests instead of OOMing issues on windows! I'll send a PR to your branch that this PR is made from @staabm . |
The 8 test failures on windows can be reviewed here tho too: https://github.com/rectorphp/rector-src/runs/2746052520?check_suite_focus=true Update: |
f3c1957
to
950ce17
Compare
Hey, I'm going through old open PRs that should be resolved. Last work seems a month ago and the PR is falling behind current version. The rebase might be very frustrating. The CI is failing here. Any plans to finish it or can we close it? |
15ce6b7
to
b242c25
Compare
rebased and made another set of tests pass. opened new issues on open problems: rectorphp/rector#6571 rectorphp/rector#6572 |
with 0b63e67 I marked this tests to be skipped on windows. that way we could get forward with the PR here and hopefully get it merged. lets see what else is failling. this skipped tests can be investigated in the separate linked issues |
58a791e
to
18a70b0
Compare
@TomasVotruba as far as I can tell the remainig errors are not related to the PR and we are good to go |
This reverts commit a68221f.
8e7d069
to
b88b82f
Compare
Separate problem, just discovered by chance :) |
You can try to fix the root of the problem or remove the |
which |
All those mentioned in failing CI job |
oh my.. so much errors in the CI I didn't even see those related to the class I have created with the PR. thx for the hint - fixed. |
Thanks for the fixes! I'm going to that issue now, to avoid it in the future 👍 It seems the CI is still failing... could you rebase on our latest I'll give you access as external contributor, so you don't have to ugprade your fork next time. To make your life sligtly easier :) I think you've earned it. |
the PR is already based on the latest main
thx <3 |
Ok, I'm checking it locally... See invitation here: https://github.com/rectorphp/rector-src/invitations |
Thank you! Rebased in #461 and partially merged. |
As discussed in #115 (comment) this PR introduced a way which allows to turn
assertSame
assertions to ignore PHP_EOL differences.Since I don't like overriding the very fundatmental behaviour across the entire code-base I figured using a simple Trait could be used in Testclasses as an opt-in to a newline normalized
assertSame
(later maybe more assertion methods).Adding a trait is very easy and does not require changes in the inheritance hierarchy of the classes which already exist. existing tests currently extend from
PHPUnit\Framework\TestCase
, some fromRector\Testing\PHPUnit\AbstractTestCase
, and some fromRector\Testing\PHPUnit\AbstractRectorTestCase
closes #115 #117 #99