-
Notifications
You must be signed in to change notification settings - Fork 22
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
Reporter not seen #19
Comments
System: Ubuntu 20.04 Custom reporter code: package tests
import (
"github.com/approvals/go-approval-tests/reporters"
"os/exec"
)
type beyondCompare struct{}
func NewBCompare() reporters.Reporter {
return &beyondCompare{}
}
func (s *beyondCompare) Report(approved, received string) bool {
cmd := exec.Command("/usr/bin/bcompare", approved, received)
err := cmd.Start() // Tried switching to Run(), then window does appear...
if err != nil {
panic(err)
}
return true
} |
I seem to have a similar issue on MacOS. I'm using GoLand, and I'm not seeing a diff window appear. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hiya,
I tried using this lib for some approvals tonight, but the external reporter (Beyond Compare 4) I finally managed to configure - by writing my own - doesn't show up. After some more digging, this turns out to be because 'something' causes the process to die before the reporter window even shows up.
I switched my custom reporter to use cmd.Run() instead of cmd.Start() to 'prove' this.
Is there something I'm missing...?
Video of behaviour:
https://youtu.be/92SRqny-ojU
The text was updated successfully, but these errors were encountered: