Add support for testing fail in Testing Panel
Opened this issue · 0 comments
Savio-Sou commented
Problem
Subsequent to the addition of Testing Panel per #39, devs can now run positive-tests (i.e. #[test]
) in the Panel.
But the Panel doesn't support running negative-tests (i.e. #[test(should_fail)]
) which devs can already run with Nargo and might expect it to also be runnable in the Panel.
Happy Case
Devs can successfully run both tests below from the Testing Panel:
fn main(x : Field, y : pub Field) {
assert(x != y);
}
#[test]
fn positive_test() {
main(1, 2);
}
#[test(should_fail)]
fn negative_test() {
main(1, 1);
}
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response