Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Test::Unit compatibility for micronaut.
Just add this to your code:
require 'micronaut/unit'
and then you can write test classes like this:
class FooTest < Micronaut::Unit::TestCase
def test_foo
assert_equal 3, Foo::major_version
end
end
Using the testinfo
method, you can attach metadata to the next
defined test (this works much the same way Rake's desc
method
attaches a description string to the next defined task):
testinfo :speed => 'slow', :run => 'nightly' def
test_tarantula_multipass
# ...
end
Each instance of Micronaut::Unit::TestCase
is equivalent to a
micronaut describe
block, so it can also include it
blocks,
before
and after
blocks, and nested describe
blocks. Test
methods and it
blocks can contain either assertions or should
expressions. test
blocks (as found in Rails 2.x) also work.
Additionally, assertions can be used inside ordinary micronaut examples.
The point of this gem is not that I think test/unit is a better way to write tests than the RSpec style. I admit that I'm a TDD oldtimer who sees RSpec as mostly a cosmetic (rather than fundamental) change, but that doesn't mean it's not an important change. My curmudgeonly nature has its limits, and I do find specs a big improvement.
So why micronaut-unit? Three reasons:
should
expression. It's nice just to have assertions supported within
Micronaut examples.It would be nice to try using the assertion code from minitest, which is much more compact and seems less coupled than that from test/unit.
Copyright (c) 2009 Glenn Vanderburg. See LICENSE for details.
FAQs
Unknown package
We found that glv-micronaut-unit 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.