A test suite for Opal. It has Unit::Test like APIs.
Add this line to your application's Gemfile:
gem 'opal-test-unit'
And then execute:
$ bundle
Or install it yourself as:
$ gem install opal-test-unit
Rakefile
require "opal/test/unit/rake_task"
Opal::Test::Unit::RakeTask.new(:default, File.expand_path("../test", __FILE__))
A simple example.
# test/test_test.rb
require "opal/test-unit"
class TestTest < Opal::Test::Unit::TestCase
test "test successful" do
success = true
assert(success, "success")
end
end
$ bundle exec rake
Bug reports and pull requests are welcome on GitHub at https://github.com/youchan/opal-test-unit.
The gem is available as open source under the terms of the MIT License.