Page MenuHomePhabricator

Make XHPAST unit test "expect" blocks stable and human-readable
ClosedPublic

Authored by epriestley on Apr 7 2020, 9:08 PM.
Tags
None
Referenced Files
F14077810: D21065.diff
Fri, Nov 22, 1:16 AM
F14076140: D21065.id50190.diff
Thu, Nov 21, 3:14 PM
F14074601: D21065.diff
Thu, Nov 21, 7:51 AM
Unknown Object (File)
Wed, Nov 20, 9:32 AM
Unknown Object (File)
Tue, Nov 12, 6:41 AM
Unknown Object (File)
Oct 22 2024, 11:31 AM
Unknown Object (File)
Oct 21 2024, 2:27 AM
Unknown Object (File)
Oct 14 2024, 3:50 AM
Subscribers
None

Details

Summary

Depends on D21064. Ref T13492. Earlier, see D17819. This is essentially the same change, although I inlined the token stream into the node list.

This intentionally breaks most tests since it just has the new "expect" generator; the next change will fix them by swapping the test bodies.

Test Plan

Ran "arc unit --everything" after the next change (which fixes all the tests), got a clean build. This change on its own fails all existing XHPAST tests since the block formats don't match.

Diff Detail

Repository
rARC Arcanist
Branch
xhpast3
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 24003
Build 33036: Run Core Tests
Build 33035: arc lint + arc unit

Unit TestsFailed

TimeTest
24 msPHPASTParserTestCase::testParser
Assertion failed, expected values to be equal (at PHPASTParserTestCase.php:105): Parser output for "anonymous_class.php.test". Expected vs Actual Output Diff --- Old Value
19 msPHPASTParserTestCase::testParser
Assertion failed, expected values to be equal (at PHPASTParserTestCase.php:105): Parser output for "anonymous_class.php.test". Expected vs Actual Output Diff --- Old Value
0 msAbstractDirectedGraphTestCase::testCyclicGraph
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testEdgeLoadFailure
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testNonTreeGraph
1 assertion(s) passed.
View Full Test Results (2 Failed · 464 Passed · 34 Skipped)

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Apr 7 2020, 9:09 PM
Harbormaster failed remote builds in B24003: Diff 50184!

Test failures are expected.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 7 2020, 9:32 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.