
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
MicroTest is a minimal Test::Unit and MiniTest compatible test framework that runs on top of Ruby Test.
Using Rubygems:
$ gem install microtest
Tests are written in the same manner as they are for Ruby's
traditional test framework(s). The only significant difference
is that an assertions framework library needs to be required
along with the test library itself. MicroTest comes with a
traditional assertions system for backward compatability
with TestUnit and MiniTest. Simply require microtest/assertion
to get it. Alternatively any BRASS compliant assertion framework
can be used.
require 'microtest'
require 'microtest/assertions'
class ExampleTest < MicroTest::TestCase
#
def setup
@a = 1
end
#
def test_alpha_is_one
assert_equal(1, @a)
end
end
For drop in compatibility with Test::Unit, load microtest/testunit
.
require 'microtest/testunit'
require 'microtest/assertions'
class ExampleTest < Test::Unit::TestCase
...
end
To run tests use the rubytest
command line utility.
$ rubytest -Ilib test/test_example.rb
See RubyTest for more details on this.
Copyright (c) 2011 Rubyworks
MicroTest is distributes under the terms of the FreeBSD license.
See License.txt for details.
FAQs
Unknown package
We found that microtest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.