oliyh / kamera

UI testing via image comparison and devcards
89 stars 7 forks source link

Support for shadow-cljs? #18

Open davidpham87 opened 5 years ago

davidpham87 commented 5 years ago

Hello,

Thanks a lot for your blog post on how to test re-frame application. May I ask you if we can kamera with shadow-cljs?

Best regards, David

oliyh commented 5 years ago

Hi,

You're welcome! Yes of course, kamera has a high level API for devcards which I guess you can use with shadow-cljs - you just give it the URL where it can find the devcards index page. https://github.com/oliyh/kamera/blob/master/src/clj/kamera/devcards.clj#L98

Alternatively there is a lower level API where you give it a series of "targets" which is a bunch of URLs and comparison images - see the 'Core API' section in the readme.

If you have an example project of shadow-cljs + devcards I would be interested to see it to see if it would be easy to support it out of the box.

Let me know if you have any more questions.

Cheers

davidpham87 commented 5 years ago

Thanks for your swift answer!

This is the repository of example from shadow-cljs: https://github.com/shadow-cljs/examples/tree/master/deps-edn-re-frame-and-devcards

I am going to dig a bit on my side to see if I can manage it! Thanks for your time!

oliyh commented 4 years ago

Hi @davidpham87, did you find anything out? I'm just doing some issue cleanup.

Thanks

davidpham87 commented 3 years ago

I have been thinking about it: I think you could do it without it, but I will probably need to make public some of your functions :-) I hope I will have time to study the question in the next 2 months.