Page MenuHomePhabricator

Improve test data format for XHPAST unit tests
ClosedPublic

Authored by joshuaspence on Nov 17 2015, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 1:08 PM
Unknown Object (File)
Wed, Dec 11, 8:51 PM
Unknown Object (File)
Tue, Dec 10, 9:16 PM
Unknown Object (File)
Mon, Dec 9, 9:47 AM
Unknown Object (File)
Sun, Dec 8, 6:02 PM
Unknown Object (File)
Sat, Dec 7, 5:13 PM
Unknown Object (File)
Wed, Dec 4, 8:53 AM
Unknown Object (File)
Fri, Nov 29, 1:29 PM
Subscribers

Details

Summary

Instead of having the input data and expected output stored in separate files, combine all data into a single file format similar to the *.lint-test format.

Test Plan

Ran unit tests.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Improve test data format for XHPAST unit tests.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

Oh -- per D14498, these tests still kind of suck because they're almost unreadable. We'd only be slightly worse off by just hashing the tree, I think.

It would be nice to print them in some more human-readable format (mark up the input PHP file somehow to annotate tokens and the parse tree?) instead of dumping the raw JSON.

This revision is now accepted and ready to land.Nov 17 2015, 3:21 PM
This revision was automatically updated to reflect the committed changes.