Adding support to generate WiX version files#1386
Conversation
asbjornu
left a comment
There was a problem hiding this comment.
Thanks for this. If it's possible to test this in any way, I would appreciate a few tests. 😄
|
You are welcome. I have added some testcases that cover the use cases scenarios for this patch |
| @@ -0,0 +1,102 @@ | |||
| namespace GitVersionExe.Tests | |||
There was a problem hiding this comment.
Why only GitVersionExe tests and not for GitVersionCore? Also, don't you agree approval tests such as this is better suited for file manipulation testing such as this?
GitVersion/src/GitVersionCore.Tests/AssemblyInfoFileUpdaterTests.cs
Lines 26 to 40 in ee5b77a
There was a problem hiding this comment.
Could you please explain this in detail?
There was a problem hiding this comment.
Yes, sure. Approval tests allows you to create a file on disk that is what the test is compared against. If the content matches, the test is successful, otherwise it fails and a diff is presented.
The above test will verify the manipulated file content against the following approved text file:
|
@ruhullahshah, can you please find time to address the code review comment regarding approval testing, rebase and resolve the conflicts of this PR? |
|
I will resolve the pending work in #1599, |
GitVersion.exe /updatewixversionfileGitVersion_WixVersion.zip