Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Minitest, now for Opal! (not complete)

Resources

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •