[openstreetmap/openstreetmap-website] Add microcosms to the website (#2390)

Andy Allan notifications at github.com
Wed Mar 18 10:52:38 UTC 2020


>     * I'm going to continue using cucumber as that's how I get from the design document Design.md to test scenarios, to specs, to code.  I'm not opposed to minitest.  In fact I'm a strong supporter of the testing pyramid, which places unit tests as the most popular testing in your suite.  i just need to know where to get started.

>     1. Get me started with minitest.  Feel free to fork my fork and submit a PR.

I'm afraid that I don't have the spare capacity right now to refactor your PR, but I can certainly point you in the right direction! For any of your tests that involve user interaction - the sort of thing where you've been using cucumber and capybara - then you should refactor the tests to be "system" tests in the `test/system' directory. You can see some examples there, and continue to use all the capybara stuff like `visit login_path`, `click_on title` and so on in those tests.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2390#issuecomment-600554273
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200318/6d905b87/attachment-0001.htm>


More information about the rails-dev mailing list