Using verify with custom verified file name #545
-
I'm investigating how Verify could be used testing esprima-dotnet. This means that we have bunch of JS files and their expected produced AST as JSON file. The common pattern among parsers / test suites is to have Here's an example directory of JS input and expected AST JSON output. Looking at these lines: Lines 23 to 24 in 350bd3f It seems that the expected file name handling is quite set in stone. Are the any recommendations or ideas how to handle such custom workflow where I guess I'm asking for a feature to globally (or even per verify run) to provide a custom file name formatter, unless this can be achieved already otherwise? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
yes. currently the
I am not sure Verify provided much value in this case. Much of the value proposition is in the ability to automate the acceptance of changed files. In your case you never want to accept those changes. I suspect what you want is the diffing of file functionality. you can get this by using the lower level DiffEngine package https://github.com/VerifyTests/DiffEngine#launching-a-tool |
Beta Was this translation helpful? Give feedback.
yes. currently the
.verified.
and.verified.
are hard coded.I am not sure Verify provided much value in this case. Much of the value proposition is in the ability to automate the acceptance of changed files. In your case you never want to accept those changes. I suspect what you want is the diffing of file functionality. you can get this by using the lower level DiffEngine package https://github.com/VerifyTests/DiffEngine#launching-a-tool