ruby-on-railsunit-testingtestingminitestrails-4-2-1

Can we breakdown a large mini-test file (some_controller_test.rb) into multiple test files


I have a controller named reports in my rails applications. This controller have 4 or 5 (reports) actions and not a very large file.

I am using mini-test for testing my application. The test file of this controller (reports_controller_test.rb) is too big file. I wanted to break down the test files only for each report so that I can write tests for each report separately. Can I really do split my 1 mini-test file into many test files.


Solution