Collecting JavaScript code coverage with Capybara in Ruby on Rails application

This page summarizes the projects mentioned and recommended in the original post on dev.to

Scout Monitoring - Rennaisance engineers rejoice! 1 gem 5 min to app monitoring
5-minute onboarding. No sales team. Devs in the support channels. No DevOps team required. Get the free app insights every engineer deserves with Scout Monitoring.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • Webpacker

    Use Webpack to manage app-like JavaScript modules in Rails

  • For example, there is a Ruby on Rails application that uses Webpacker and has JavaScript files that are covered by the system tests. Capybara is used as the system testing tool.

  • jest

    Delightful JavaScript Testing.

  • This instrumenter is already outdated, but Jest is still using it to get coverage, and we have not found any alternatives to work with Webpack directly.

  • Scout Monitoring

    Rennaisance engineers rejoice! 1 gem 5 min to app monitoring. 5-minute onboarding. No sales team. Devs in the support channels. No DevOps team required. Get the free app insights every engineer deserves with Scout Monitoring.

    Scout Monitoring logo
  • Capybara

    Acceptance test framework for web applications

  • For example, there is a Ruby on Rails application that uses Webpacker and has JavaScript files that are covered by the system tests. Capybara is used as the system testing tool.

  • istanbul-instrumenter-loader

    Discontinued Istanbul Instrumenter Loader

  • For getting coverage of the JavaScript code, we use Istanbul Instrumenter Loader. It needs to be added as a dev dependency with the package manager (Link to installation).

  • codecov-ruby

    Discontinued Ruby uploader for Codecov

  • For collecting the coverage results we will use Codecov. It has several arguments in his favor:

  • nyc

    the Istanbul command line interface

  • At the next stage, they are merged into one JSON file. For this purpose, we use nyc (Istanbul’s command line interface).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • # 5 Testing Frameworks for JavaScript Developers

    3 projects | dev.to | 1 Jun 2024
  • Potential issues with barrel files in Jest

    2 projects | dev.to | 22 May 2024
  • How to leverage Jest in your JavaScript codebase: A guide to Snapshot Testing

    1 project | dev.to | 19 May 2024
  • API Testing with Clerk and Express

    1 project | dev.to | 25 Mar 2024
  • JS Toolbox 2024: Bundlers and Test Frameworks

    10 projects | dev.to | 3 Mar 2024