Minitest, now for Opal! (not complete)
Ruby HTML
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib/opal
opal
test
vendor
.gitignore
CHANGELOG.md
Gemfile
README.md
Rakefile
opal-minitest.gemspec

README.md

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.