This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
📎 Unify internal testing strategy #4650
Labels
A-Tooling
Area: our own build, development, and release tooling
good first issue
Good for newcomers
Help wanted
Help would be really appreciated
task
A task, an action that needs to be performed
Milestone
Description
At the moment we have different ways to test stuff in our internal crates, and they are different from each other:
rslint
. It works but it requires to steps (files generation and snapshot update). There's no way to pass configuration/options to the code;insta
snapshots. There's a way to pass options but it doesn't follow the configuration, we should use therome.json
configuration instead;insta
snapshots and it accepts arome.json
configuration;The idea would be to create an internal crate where we could create generic testing utilities where:
*.options.json
file inside that folder and tries to de-serialize it into aConfiguration
type;Configuration
;Ideally, as a starting point, we can copy what we have inside the
rome_js_analyze
, make it generic and then change the code insiderome_js_analyze/tests
androme_json_analyze/tests
.Then we should move to:
rome_json_formatter
rome_js_formatter
rome_json_parser
rome_js_parser
I would mark this issue as "good first issue" but I would expect some knowledge of Rust to begin with.
The text was updated successfully, but these errors were encountered: