Skip to content

youchan/opal-test-unit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opal::Test::Unit

A test suite for Opal. It has Unit::Test like APIs.

Installation

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

Usage

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

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/youchan/opal-test-unit.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published