-
Notifications
You must be signed in to change notification settings - Fork 464
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
Consider inlining and abridging the typeCoercion.js paradigm #1308
Comments
I give "yes" to all three |
Here's what I'm generating so far: thejoshwolfe@1adfab8 I emitted code that does everything the current framework is doing behind the scenes. This definitely needs to be cut down before this is ready to go. For example, the ToBigInt tests have over 600 lines of code, many of which are trivially duplicated. I'd also like to separate tests into multiple files categorized by things such as feature usage. And I'd like to generate meaningful messages in the assert calls. |
Another status update: I think the output is good. The generator python code could use some polish, but I'd like feedback on the JavaScript code I'm outputting: Things to note:
|
@thejoshwolfe Seems generally good to me. A couple nits:
|
Yes. That's part of my plan. I want the generator script to scan for and run .py "src" scripts like how the existing generator scans for .case and .template files. Then it will definitely make sense to put the source path in the generated output.
I was noticing the very long lines. I'll look into some simple heuristic, like any case that uses a wrapper object gets wrapped. This isn't the same as wrapping at 100 chars; there may still be lines longer than 100 chars with this strategy, but it's something. |
Currently, #1282 is going through some review feedback where the use of the
harness/typeCoercion.js
is causing confusion. As the creator oftypeCoercion.js
, I have a proposal to make its use less confusing:harness/typeCoercion.js
.tools/
that generates individual assertion cases to fill in the coverage that we were getting throughtypeCoercion.js
.typeCoercion.js
.For background,
typeCoercion.js
has caused a non-trivial amount of trouble for test262 ( #1241 (comment) , #1252 ).I'm not sure the current test generation framework would be sufficient for this. Perhaps it would; I can look into it.
Currently, we're getting an awful lot of coverage from
typeCoercion.js
(see #1282 (comment) ), which is probably too much to list in individual assertions. We'll want to make sure we're generating useful assertions, and we don't want to waste effort testing too many things with a near 0% chance of helping anyone.This issue thread is to discuss this possibility. Is this desirable?
The text was updated successfully, but these errors were encountered: