-
Notifications
You must be signed in to change notification settings - Fork 6
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
Technical discussion: Automated testing #2
Comments
From the monthly call:
|
From @brad4d (just didn't want it getting lost!) Re: testing tools that generate source maps. Suppose the test cases were input JS code which includes string values that won't be stripped out by the compiler/processor. The output passes the test if the source maps correctly map the locations of those same strings in the output back to the original text? |
Re (2) and (3), could we publish a repository of test cases in some readable format and allow interested consumers to adopt the test suite? Running tests in Sentry versus Chrome Devtools versus js-debug would be very different, but it's likely people would happily adopt a nice easy-to-parse test suite. This is similar to other "bring your own tool" test suites like autobahn or pngsuite. For dev tools at least, this could be a set of tests that comprise:
One could also test generators by having them create the JS and map file from the source file and run it against similar assertions. |
I'm hoping this issue will serve as a good place for discussing automated testing of source maps.
The text was updated successfully, but these errors were encountered: