Document Class-Level File Extension Setting #1533
Replies: 3 comments 1 reply
-
yeah, those docs a very of of date. there is currently no way this can be achieved at the class level. i have fixed the docs |
Beta Was this translation helpful? Give feedback.
-
out of curiosity, what is the extension |
Beta Was this translation helpful? Give feedback.
-
@SimonCropp right now it's HTML, but in the very near future for me it could be JSON, or CSV, or maybe even application code where my diff tools might normally be able to provide niceties like syntax highlighting based on file extension. It's pretty common for a given test class I write to deal in a whole bunch of generated text in the same format. I know I could create a settings instance at the class level and then pass that to Verify each time, but then devs have to remember to do that which makes a tougher sell to the architects that I'm trying to get onboard with approval testing (over our current solution, which is only manual testing). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The "Naming" documentation entry for "Extension" states:
The default file extension is .txt. So the resulting verified file will be TestClass.TestMethod.verified.txt.
It can be overridden at two levels:
However there's no sample provided for changing the extension at the Class level. How can this be achieved?
Beta Was this translation helpful? Give feedback.
All reactions