-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating new approved files, of non-text types, try to make them valid empty files #172
Comments
Since we don't have an installer mechanism, there's a variety of ways that users can obtain ApprovalTests.cpp, including:
So I think we'll have to train users to install the EmptyFiles tool themselves... (and install dotnet - which won't be standard for pure C++ projects...) |
Simon Cropp pointed to that it's possible to make dotnet exes standalone, so the above wouldn't be needed... |
Idea: we could create a seam to generate empty files - and if it detects that empty-file is present, it runs it... |
Co-Authored-By: Clare Macrae <[email protected]>
Co-Authored-By: Clare Macrae <[email protected]>
The seam/customization point for controlling how new files are created is documented here: https://github.com/approvals/ApprovalTests.cpp/blob/master/doc/Writers.md#empty-files |
There is a simpler seam now, that works well for individual file extensions: |
Add integration with Simon Cropp's EmptyFiles tool - see https://github.com/VerifyTests/EmptyFiles#tool-usage
We would have to work out the mechanics of this.
The text was updated successfully, but these errors were encountered: