Writing unit tests for noir protocol circuits

Hi,

As a side project, I’m auditing and writing unit tests for the Aztec Noir protocol circuits. I have a few questions for any of the devs"

  1. Does your team accept PRs that introduce unit tests?
  2. Is there any preferred best practices that I can align myself with when writing tests?

Thanks!

40 Likes

Hey @thankyou, thanks for reaching out and for your interest in contributing! Our protocol circuits are still changing, so I think it’s a bit preemptive to accept external PRs for protocol circuit unit tests.

I don’t think we have best practices for these tests documented yet, but you can see how we’ve written some here.

16 Likes

Thanks @joshc.

Quick follow up question. Is there any stable Noir code that could use some tests? If not, that’s fine. I’ll just continue on in my little corner doing my audit :).

10 Likes

Looking through the open issues in the Noir repo, some of these look like good ones that you could pick up.

52 Likes

Thanks for the help @joshc!

39 Likes