I've been using minitest extensively for unit and integration tests for my project. As I'm writing more integration tests using minitest, I came into some scenarios where I need to click on some show/hide links and check the html results. Correct me if I'm wrong but you can't do that with minitest. Should I use capybara for this?
If I use capybara with minitest, can I mix functions of both frameworks in the same file ? if so, would my file have to extend < ActionDispatch::IntegrationTest and capybara with some tests looking like:
test "if not signed in get redirected to sign in page" do
and others looking like feature "Can Access Home" do
in the same file?
Can I mix both types of asserts in the same function?
Thank you for your clarification on what is generaly done as I move into more comprehensive testing territory.
Aucun commentaire:
Enregistrer un commentaire