purescript-simple-dom icon indicating copy to clipboard operation
purescript-simple-dom copied to clipboard

Document testing

Open manpages opened this issue 9 years ago • 2 comments

  • What is Zombie.js?
  • Why do we test it?
  • How to test the project with more conventional phantomjs?
  • How to test the project in browser?

Regarding last bullet-point — I did an ugly-ugly thing — made Main.main to point at Tests.Main.main, then run pulp server, then tested stuff in browser, when the tests passed, I've removed Main module and force-pushed.

That's ugly, but it saved me a lot of time figuring out how to do a thing that should be trivial — running tests :)

manpages avatar Aug 27 '15 14:08 manpages

Sadly, I can't contribute here as I have no idea how to answer any of those questions.

manpages avatar Aug 27 '15 14:08 manpages

PhantomJS would probably be your best bet for testing, although it's not without its own flaws.

garyb avatar Aug 27 '15 14:08 garyb