purescript-simple-dom
purescript-simple-dom copied to clipboard
Document testing
- 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 :)
Sadly, I can't contribute here as I have no idea how to answer any of those questions.
PhantomJS would probably be your best bet for testing, although it's not without its own flaws.