[go-nuts] Re: File diff based go test check

2017-05-24 Thread Tong Sun
Just FTA, I've implemented such File diff based go test checking in my easygen universal code/text generator https://github.com/go-easygen/easygen#details without pulling any extra packages. Specifically, the test file is at, https://github.com/go-easy

[go-nuts] Re: File diff based go test check

2017-04-14 Thread mhhcbon
indeed, that s great https://godoc.org/github.com/kylelemons/godebug/pretty#example-Compare I wonder if it could do side by side diff like github :s On Friday, April 14, 2017 at 1:05:38 PM UTC+2, Tamás Gulácsi wrote: > > There's kylelemons/godebug/diff -- You received this message because you

[go-nuts] Re: File diff based go test check

2017-04-14 Thread Tamás Gulácsi
There's kylelemons/godebug/diff -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.g

[go-nuts] Re: File diff based go test check

2017-04-14 Thread mhhcbon
do you mean something like git diff ? Would like t. On Thursday, April 13, 2017 at 7:35:42 PM UTC+2, Tong Sun wrote: > > My program works on files, read from input and write to output. > > Is there any ready-made and *light *testing packages that allows me > checking whether the new output i

[go-nuts] Re: File diff based go test check

2017-04-13 Thread Val
Hi Tong Sun You may use the standard testing package and compare byte slices . For the source of truth, use current output as expected bytes, either hard-coded in test source, or read from a new folder that you would call "