Hi. Does Solidus also offer the possibility to use...
# general
t
Hi. Does Solidus also offer the possibility to use normal Rails Controllers and Views or does it always generate a REST API which one needs to connect to an external storefront written in something like Next.js?
k
it does, and it’s actually the default usage.
👍 1
t
Thanks for your quick reply.
I just saw that you opted for RSpec. However, we want to integrate Solidus into a project which uses Minitest. Is there any good Minitest support?
k
We have some testing helpers that you can require in your application tests, but yes, they are all based on RSpec that we use in core. To be clear, RSpec is used in the core and you don’t have to use the same library used by core in your application that uses Solidus. Still, you’ll eventually require to write similar helpers for Minitest on your own app, and to be honest I don’t know how much effort is required for that, but testing a Solidus storefront is very similar to test any other Rails application, so I suspect it won’t be a huge amount of work.
e
BTW the specs installed along with frontend code are meant to be a starting point, you’re free to delete them (not advised tho) or migrate them to minitest (probably run them in the CI until you have a replacement)