alexfertel / bulloak

A Solidity test generator based on the Branching Tree Technique.
Apache License 2.0
225 stars 13 forks source link

Print file and line number where mismatch is found #43

Closed PaulRBerg closed 9 months ago

PaulRBerg commented 9 months ago

If I run bulloak check from the root of the project, like this:

$ bulloak check ./**/*.tree

And there is a mismatch, I get an error log like this:

Codegen not found: Couldn't find a corresponding element for "test_WhenXIsTrue" in the solidity file.

This is vague. It tells me neither the file in nor the line number where the mismatch was found.

For maximum clarity, Bulloak should print this information to the terminal.

alexfertel commented 9 months ago

This should be way better! Take it for a spin and lmk if you find any bugs.

PaulRBerg commented 9 months ago

Beautiful!

bulloak check ./**/*.tree
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
check failed: couldn't find a corresponding element for "test_WhenXIsTrue" in the Solidity file
file: ./test/04-given-when/givenWhen.tree | line: 7

error: 1 check failed. See details above.