0.01
No commit activity in last 3 years
No release in over 3 years
Minitest test runner for Opal
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 5.3.4

Runtime

>= 0.8
~> 10
 Project Readme

opal-minitest

Minitest, now for Opal! (not complete)

Usage

First, install this gem in an Opal project.

# Gemfile
gem 'opal-minitest'

$ bundle install

Then, add this gem's Rake task to a Rakefile.

# Rakefile
require 'opal/minitest/rake_task'
Opal::Minitest::RakeTask.new

Finally, run Rake.

$ bundle exec rake

This will run tests and code in all project files matching test/{test_helper,**/*_test}.{rb,opal}. Try the example!

Status

Opal Minitest supports everything in minitest/unit except parallel test running, plugins, CLI options, and #capture_subprocess_io.

Opal Minitest does not yet support minitest/spec, minitest/benchmark, minitest/mock, or minitest/pride.

All code differences from normal Minitest are documented with the label PORT.