Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minitest-reporters-parallel_tests_reporter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minitest-reporters-parallel_tests_reporter

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Minitest::Reporters::ParallelTestsReporter

a minitest-reporters extension for integrating with parallel_tests. Designed to integrate with parallel_tests-extensions

Installation

gem 'minitest-reporters-parallel_tests_reporter'
gem 'parallel_tests-extensions'

Usage

In the example below we integrate with parallel_tests-extensions to compile the reports from each process and print out the failed tests:

require 'parallel_tests/extensions'
require 'minitest/reporters/parallel_tests_reporter'

ParallelTests.after_tests do 
  if ParallelTests.first_process?
    report = Minitest::Reporters::ParallelTestsReporter.compile_reports! 
    failed = report.select {|r| r[:failures].any?}
    if failed.any?
      puts "\nThe following tests failed:"
      puts failed.map {|f| f[:location]}.join("\n")
    end
  end
end

if ParallelTests.is_running?
  Minitest::Reporters.use!(Minitest::Reporters::ParallelTestsReporter.new)
end

FAQs

Package last updated on 30 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc