-
Notifications
You must be signed in to change notification settings - Fork 4.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
Parser: Runs all parser implementations against the same tests #11320
Merged
Commits on Oct 31, 2018
-
Parser: Runs all parser implementations against the same tests
So far we haven't added too many tests to the parsers but the ones we _have_ added are in separate places and each implementation runs against a different set of tests. In this patch we're creating `shared-tests.js` in the spec parser that defines a suite of conformance tests for the parser and then we're using that base test-builder to dynamically create test suites for each implementation such that they all run the same suite. It's probably easier to understand by reading the code than this summary. Of note: by calling to `php` directly we're able to run the PHP parsers against the same tests as we are the JavaScript implementations. We should be able to do this for any implementation as long as the required binaries are available in the CI environment (Rust, for example).
Configuration menu - View commit details
-
Copy full SHA for f46735a - Browse repository at this point
Copy the full SHA f46735aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 922867d - Browse repository at this point
Copy the full SHA 922867dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42adae3 - Browse repository at this point
Copy the full SHA 42adae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d066372 - Browse repository at this point
Copy the full SHA d066372View commit details -
Configuration menu - View commit details
-
Copy full SHA for becc7dd - Browse repository at this point
Copy the full SHA becc7ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c1d61d - Browse repository at this point
Copy the full SHA 2c1d61dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a09538 - Browse repository at this point
Copy the full SHA 1a09538View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0203593 - Browse repository at this point
Copy the full SHA 0203593View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5f501b - Browse repository at this point
Copy the full SHA f5f501bView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.