Skip to content
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

tasks: automation around comparing to other tools #6142

Closed
Boshen opened this issue Sep 28, 2024 · 1 comment
Closed

tasks: automation around comparing to other tools #6142

Boshen opened this issue Sep 28, 2024 · 1 comment
Assignees
Labels
C-enhancement Category - New feature or request

Comments

@Boshen
Copy link
Member

Boshen commented Sep 28, 2024

To reduce time on debugging our tools, we need a new tool for comparing against other tools.

How I imagine this should work:

pbpaste | cargo run -p compare -- bunch of args
cargo run -p compare -- bunch of args https://raw.github.com/...
cargo run -p compare -- bunch of args ./test.js

These commands will

  1. retrieve the file from clipboard / url / disk
  2. run all our components
  3. save each component's output to disk if we want to inspect the full output
  4. compare these outputs to babel / swc / esbuild etc
  5. run our output and other tool's output through prettier
  6. produce a diff if there are mismatches

I have been doing these tasks over and over, I think it's time to automate these steps.

@Boshen Boshen added the C-enhancement Category - New feature or request label Sep 28, 2024
@Boshen Boshen changed the title tasks: debuggability enhancement tasks: automation around comparing to other tools Sep 28, 2024
@Boshen Boshen self-assigned this Sep 28, 2024
@Boshen
Copy link
Member Author

Boshen commented Oct 21, 2024

moved to oxc-project/backlog#136

@Boshen Boshen closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category - New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant