Home Rspe with simplecov gem hangs
Reply: 0

Rspe with simplecov gem hangs

user1343
1#
user1343 Published in August 15, 2018, 11:15 am

i am running test cases using rspec . i am using docker for my application so the command which i am using for running spec is as below

sudo docker-compose run -e "RAILS_ENV=test" rails spec SPEC=./spec/requests/create_spec.rb

i have added below configuration for simplecov gem

require 'simplecov'
SimpleCov.start 'rails' do
  minimum_coverage 50
end

The issue is that when test coverage is more than 50% rspec just hangs and when its coverage is less than 50% it works without issue. i check the number of process running when script hangs and found below fishy thing.

root      9490     2  0 20:45 ?        00:00:00 [kworker/3:1]
root      9493  6648  0 20:45 pts/18   00:00:00 sudo docker-compose run -e RAILS_ENV=test rails spec SPEC=./spec/requests/create_spec.rb
root      9494  9493  0 20:45 pts/18   00:00:00 docker-compose run -e RAILS_ENV=test rails spec SPEC=./spec/requests/create_spec.rb
root      9495  9494  0 20:45 pts/18   00:00:00 docker-compose run -e RAILS_ENV=test rails spec SPEC=./spec/requests/create_spec.rb

if you can see from above process with id 9493 was initiated by me but i don't know why and from where the processes with id 9494 and 9495 are initiated? is this the reason the script hangs?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.296376 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO