Open lgalabru opened 1 month ago
@lgalabru What do you think about the clarunit approach? https://www.npmjs.com/package/@stacks/clarunit (Similar ideas)
Oh nice, that probably works. I guess with this present proposal, clarity testing clarity would become a first class citizen. We can keep this issue open for a few week and passively collect feedbacks / demands?
A non negligible amount of developers want to write their tests in clarity. I wonder if this is something we could support "simply" by introducing a
#[test]
command processor. It could look like:I think we would still be using js/ts for coordinating / structuring the test execution, but at least the logic would be written in clarity - developers would be calling something like:
So when deploying such contracts, I think the
#[test]
directive would exclude the subsequent clarity statement from the contract?