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

Apply caching behaviour to nargo test #3148

Open
TomAFrench opened this issue Oct 13, 2023 · 0 comments
Open

Apply caching behaviour to nargo test #3148

TomAFrench opened this issue Oct 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@TomAFrench
Copy link
Member

Problem

When iterating on circuits I'd like to be able to quickly check if my changes have broken/fixed any of the tests I have written in Noir.

nargo test however recompiles every test function on each call. This can be very slow in cases where I have many tests which all need to compile significant circuits, even if I haven't changed any of the Noir source code which is relevant to the test in question.

Happy Case

We can then reuse the caching behaviour in #2743 to check if the test has been changed. If so we can re-run the test and display the updated output, otherwise we can reuse the old result.

Alternatives Considered

No response

Additional Context

This is basically a requirement for nargo test --watch functionality.

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@TomAFrench TomAFrench added the enhancement New feature or request label Oct 13, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant