-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional tests #20
Comments
It would be a lot easier to practice TDD / BDD this way too. Think of a scenario that needs help? Write some example html and js, write the test, make it pass. |
Could actually write tests in darcy-web and then whatever implemented darcy-web could run those tests against itself! |
Hey, I came up with this spykob@dea581ec0ca51afe920674d571a8692d530db525 to start up embedded Jetty and run a test against it. It should be easy to abstract the browser creation so that the tests can be shared - but I wonder where should the test cases live. |
@spyrkob I extracted out the WireMock is kinda like this, maybe it would be better to extend that to allow it to serve a directory, but I didn't have much luck going down that route. Especially since as you can see doing it like this is really simple. One of the things I did was allow for a server to be reused across tests and not shutdown until JVM exit. I think I might refactor how this is done a bit but, it works. As far as darcy specific test support, I agree we need another module like, darcy-web-test or something of the sort. However I think for most things using the |
I'm not incredibly happy with the unit tests.
Besides that many had to just be eliminated due to refactorings and have not yet been replaced, I think we need functional tests too. This can present edge cases more naturally and actually catch real bugs before they are found by real users.
Need...
The text was updated successfully, but these errors were encountered: