https://github.com/fastruby/js-coverage-sample-app
Rails App reporting JavaScript code coverage using vanilla JavaScript, Typescript and ReactJS
https://github.com/fastruby/js-coverage-sample-app
Last synced: 10 months ago
JSON representation
Rails App reporting JavaScript code coverage using vanilla JavaScript, Typescript and ReactJS
- Host: GitHub
- URL: https://github.com/fastruby/js-coverage-sample-app
- Owner: fastruby
- Created: 2021-10-13T18:12:05.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-28T23:25:16.000Z (about 4 years ago)
- Last Synced: 2025-01-10T16:44:34.266Z (12 months ago)
- Language: Ruby
- Size: 173 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This is a sample application with the required configuration to get JavaScript code coverage for JavaScript, TypeScript and React, and also Ruby code coverage, using SimpleCov, Capybara and Istanbul.
## Requirements
Ruby version: 2.6.5
## How to run the test suite
This app contains the setup to run both RSpec and MiniTest test suits and get the code coverage.
If you want to use RSpec, you can run `COVERAGE=true rails spec`
If you want to use MiniTest, you can run `COVERAGE=true rails test:system` or `COVERAGE=true rails test:all`