giu icon indicating copy to clipboard operation
giu copied to clipboard

Cover the project with tests(not a bug)

Open jcbritobr opened this issue 3 years ago • 4 comments

First of all, i want to congratulates by the very nice project. It is a very important step for a really effective golang ui toolkit. To make it solid, it only needs a good test coverage layer to make it perfect.

jcbritobr avatar Jun 20 '21 23:06 jcbritobr

@jcbritobr Sure thing, I'm doing it right now.

AllenDang avatar Jun 21 '21 02:06 AllenDang

@AllenDang idk if i already asked about it (iitc i did but don't remember and can't find where): Do you have any idea about how to write unit Tests for imgui widgets?

gucio321 avatar Jul 22 '22 06:07 gucio321

Mock native data in unit tests. Objective is not test imgui software, but only your wrapper.

jcbritobr avatar Jul 22 '22 14:07 jcbritobr

Yeah you are right. I'd need a code example and then i can do that 😊

gucio321 avatar Jul 22 '22 18:07 gucio321