Assert that an object responds to a method before asserting that the method is received.
This is a stupid simple example of how easy it is to make a minitest plugin that does something useful. In this case it wraps assert so that failed assertions will drop into the ruby debugger.
Provides method call assertions for minitest
Dfect is an assertion testing library for Ruby that emphasizes a simple assertion vocabulary, instant debuggability of failures, and flexibility in composing tests.
Bonus assertions for {Minitest}[https://github.com/seattlerb/minitest], providing assertions I use frequently, supporting only Ruby 2.0 or better.
Add axe assertions to expect statements by default in Ruby Selenium
Screenshot-based assertions for RubyMotion projects
danger plugin for asserting Swift compilation time.
BRASS stands for Bare-Metal Ruby Assertion System Standard. It is a very basic foundational assertions framework for other assertion and test frameworks to make use so they can all work together harmoniously.
A small library for making remote HTTP requests and response assertions in tests.
Aggregate Minitest assertions
Enables the creation of scenarios that involve creating a rails project, starting and stoppping of servers, generating projects, editing files, issuing http requests, running of commands, etc. Output is captured as a single HTML file that can be viewed locally or uploaded. Additionally, there is support for verification, in the form of defining assertions based on selections (typically CSS) against the generated HTML.
Also contains some conveniences such as a flag to clear w3c cache at runtime, and some other cleanups
rspec_hpricot_matchers provides an implementation of rspec_on_rails' have_tag() matcher which does not depend on Rails' assert_select. Using Hpricot instead, the matcher is available to non-Rails projects, and enjoys the full flexibility of Hpricot's advanced CSS and XPath selector support.
I like using should_create and friends to make assertions about records coming and going in the database. Shoulda did, but doesn't any more. With this, it can again.
assert_value assertion
A collection of convenient assertions for faster & DRY'er testing of Sequel database apps/gems.
Assert that the conditions of your test are correct before testing
Detest is an assertion testing library for [Ruby] that features a simple assertion vocabulary, instant debuggability of failures, and flexibility in composing tests.
mrubyc-test is an unit test framework for mruby/c, supporting basic assertions, stub and mock.
must_be provides runtime assertions which can easily be disabled in production environments. Likewise, the notifier can be customized to raise errors, log failure, enter the debugger, or anything else.
SAML 2.0 is an XML-based protocol that uses security tokens containing assertions to pass information about a principal (usually an end user) between a SAML authority, that is, an identity provider, and a SAML consumer, that is, a service provider. SAML 2.0 enables web-based authentication and authorization scenarios including cross-domain single sign-on (SSO), which helps reduce the administrative overhead of distributing multiple authentication tokens to the user.
Additional test assertions for Ruby standard libraries.
Use power_assert inspection in irb
Use Assert for testing Rails applications.
A collection of assertion macros for testing Mongoid with Riot
Selenium RC with Rails integration and enhanced assertions.
TTYtest allows running applications inside of a terminal emulator (like tmux) and making assertions on the output.
Using Minitest::Ok, you can write: * 'ok {1+1} == 2' instead of 'assert_equal 2, 1+1', * 'ok {1+1} > 0' instead of 'assert_operator 1+1, :>, 0', * 'ok {5}.in?(1..9)' instead of 'assert_include 1..9, 5', and so on.
["Adds Minitest assertion for testing HTML output, including contents, within a provided string"]
Adds Minitest assertions to test for errors raised or not \ raised by Minitest itself. Most useful when testing other Minitest assertions.
Provides and includes a module that helps to make solid scripts for data analysis
Assert with Rack::Test
Uspec is a shiny little spec framework for your apps! Unlike other testing frameworks there's no need for matchers, there can only be one assertion per test, and you never have to worry that your tests lack assertions.
An easy-to-use test harness that runs assertions before and after and executable is run
A 300loc refactoring of Jeremy Mcanally's Matchy. Original Description: Hate writing assertions? Need a little behavior-driven love in your tests? Then matchy is for you.
assert_same assertion
Oktest.rb is a new-style testing library for Ruby. You can write `ok {1+1} == 2` instead of `assert_equal 2, 1+1` or `expect(1+1).to eq 2`. In addition, Oktest.rb supports **Fixture injection** feature inspired by dependency injection and **JSON Matcher** feature similar to JSON schema. See https://github.com/kwatch/oktest/tree/ruby/ruby for details.
Testing device for the lumberjack gem that can be used for asserting messages have been logged in a test suite.
A tiny mocking framework focused on the Arrange-Act-Assert test pattern. Grasshopper is heavily modeled after Mockito.
assert_xpath and deny_xpath call assert_ and deny_tag_id
Power Assert for test-unit
== DESCRIPTION: BlockChainable is a module to aid in the creation of Domain Specific Languages using block structure. By including BlockChainable into your classes, you will be able to instantiate that class using the class name itself, followed by any parameters to be passed to initialize, followed by a block to be executed within the instantiated class. BlockChainable also allows methods to search up the chain of classes, meaning that although a block is executed in the scope of the instantiated class, any methods not found in the class but found in a class "up-scope" will be called successfully on the up-scope class. This chaining of method calls allows you to assert values within the blocks as well as calling any other methods from "up-scope" classes. == FEATURES/PROBLEMS:
They are some performance critical pieces of code that will be executed on huge data sets, which we want to make sure will run fast enough. Unfortunately, enforcing this is not easy, often requiring large scale and slow benchmarks. This rspec library (the result of an experiment to learn machine learning) uses linear regression to determine the time complexity (Big O notation, O(x)) of a piece of code and to check that it is at least as good as what we expect. This does not require huge data sets (only a few large ones) and can be written as any unit test (not as fast though).
Optional Type Assertions for Ruby methods.
Introduces assert_changes and assert_no_changes to Minitest.
This project adds some additional assertions to Test::Unit::Assertions, including assert_raise_message (allowing verification of error messages) and assert_greater_than.
birdbath makes testing your migrations easier by adding helper methods to Test::Unit::TestCase for asserting the current state of the schema and executing migrations against the test database.
Assert with Mocha
ActiveFedora library to allow use of RELS-INT to track RDF assertions about datastreams via a similar api to the ActiveFedora RELS-EXT implementation