-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add beyondcompare 4 support #31
Comments
NOTE: if you can think of a way to make it less version dependent, that would be awesome. |
I had trouble getting {
// this is used in exception reporting etc. Just give it a name :)
name: "BeyondCompare4",
// This is used to determine if the reporter can report on the specified file
// EX: an image differ vs a txt differ...
canReportOn: function(receivedFilePath) {
return receivedFilePath.endsWith(".txt");
},
// Actually execute the diff against the two files
report: function(approved, received) {
if (!fs.existsSync(approved)) {
fs.writeFileSync(approved, "");
}
var exe = "C:/Program Files/Beyond Compare 4/BCompare.exe";
console.log('CMD: ' + [exe, received, approved].join(' '));
child_process.spawn(exe, [received, approved], {
detached: true,
stdio: ['pipe', 1, 2, 'ipc']
});
}
} |
FYI, it works for me on mac |
I've updated beyond compare reporter to try to do a little extra path searching... https://github.com/approvals/Approvals.NodeJS/blob/master/lib/Reporting/Reporters/beyondcompareReporter.js NOTE: I don't have this tool - so here's 🤞 that it still works (and improves on the old one) |
new term 🤞 DD |
🤞 DD |
I can add a beyond compare 4 reporter, this is just a reminder for myself
The text was updated successfully, but these errors were encountered: