You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the example herehere to refactor the lexer tests so that the test function is exposed in those suites. This allows the IDE to detect tests for better integration and runnability. Also determine if Ava has native support for repeating tests on different data.
Other Information
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
A major drawback of the approach in the struck through link is that all lexer assertions would be consolidated into a single test function, making it difficult to diagnose multiple lexer issues simultaneously. To that end, do not use the above example.
It seems that using Ava's macros is the ideal approach here. We have the benefit of both reusing test implementation logic and being able to execute an individual test via the IDE.
The following find and replace regex can be used (in WebStorm at least) to quickly convert the existing lexer test data to test declarations referencing a 'macro' function:
Summary
Use the example
herehere to refactor the lexer tests so that the test function is exposed in those suites. This allows the IDE to detect tests for better integration and runnability. Also determine if Ava has native support for repeating tests on different data.Other Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: