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

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. 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.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. 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.

  4. 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.

  5. 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).

  6. codecov-ruby

    Discontinued Ruby uploader for Codecov

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

  7. 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

  • Instalando Jest no Angular(20)

    1 project | dev.to | 29 Jul 2025
  • Top React Testing Libraries in 2025

    7 projects | dev.to | 31 Mar 2025
  • How To Write Unit Test Cases In React JS

    1 project | dev.to | 8 Mar 2025
  • Jest: A Delightful JavaScript Testing Framework

    1 project | dev.to | 10 Feb 2025
  • Comprehensive Guide to React Testing: From Fundamentals to Advanced Techniques

    1 project | dev.to | 29 Dec 2024

Did you know that Ruby is
the 12th most popular programming language
based on number of references?