I am trying to use the simplecov pearl in a Ruby project. However, I failed. Here is what I have done so far.
My project structure: ProjectFolder - lib - test
I have my tests in test and source code in lib. I created test_helper.rb in the test directory and added the following.
require 'simplecov' SimpleCov.start
Then I put `require 'test / test_helper.rb' in each test file. It happened that sometimes a report was created, and sometimes not. And when this happened, it was inconsistent.
All the tutorials I found were for Rails, so I will go back to StackOverflow again to show me the way.
source share