SimpleCov rspec and cucumber separately

Could you tell me how to configure simplecov to test models with rspec and a controller with only cucumber? I don’t like the coating of rspec and cucumber mixed together ...

+4
source share
2 answers

SimpleCov.coverage_dir 'coverage'

This will allow you to set the directory in which coverage information will be displayed. Thus, one way to configure it would be to place

 if RUBY_VERSION > "1.9" require 'simplecov' SimpleCov.start 'rails' SimpleCov.coverage_dir 'coverage/rspec' end 

inside test_helper and

 if RUBY_VERSION > "1.9" require 'simplecov' SimpleCov.start 'rails' SimpleCov.coverage_dir 'coverage/cucumber' end 

inside features/support/env.rb

That should separate them. You probably also want to run the tests separately so that they do not merge them.

+9
source

Hmmm ... no answer .. my solution was to remove the query string from one of the test frameworks and run the test separately ...

0
source

All Articles