jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Not getting coverage reports after upgrading from rails 5 to rails 6 #599

Open vinod-gatadi opened 1 year ago

vinod-gatadi commented 1 year ago

Hi, I am using Rails 5.2.8 + angular JS application. We are using a gem "teaspoon-jasmine" for handling unit test cases for angular app. Everything is working fine till today. Now, I am trying to update from Rails 5 to 6. Updated my Gemfile as per guide gem 'rails', '~> 6.0'. Now all are working fine. App is fine. Jasmine test cases are also success. But unable to generate coverage reports. Getting below message on running the case RAILS_ENV=test bundle exec teaspoon --coverage=default

Finished in 11.10300 seconds 1404 examples, 0 failures You requested coverage reports, but no results were found. Are all files being ignored in your coverage config? If you have expand_assets set to false, you will need to remove spec_helper from the ignore list.

Checked my teaspoon_env.rb config. It has true value. suite.expand_assets = true.

When I revert back to rails 5, everything is fine again. Do we have any solution for Rails 6.

mathieujobin commented 1 year ago

I haven't found a solution for this. We continue using it without coverage... Then when we included hotwire in rails, upgrading to sprockets 4, it broked teaspoon entirely.

I'm afraid not enough users and maintainers are available to make it usable again.

if no one steps in to help, this gem will officially become abandonned/unmaintained

hudakh commented 7 months ago

Same here. Any update?

mathieujobin commented 7 months ago

I'm afraid we are very few users of teaspoon left. if you find a fix and are willing to open a PR, I can review and release.