0.0
No commit activity in last 3 years
No release in over 3 years
DSL for Petitest.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0

Runtime

~> 0.3.0
 Project Readme

Petitest::DSL

Gem Version Documentation

DSL for Petitest.

Installation

Add this line to your application's Gemfile:

gem "petitest-dsl"

And then execute:

bundle

Or install it yourself as:

gem install petitest-dsl

Usage

Require "petitest/dsl" and extend Petitest::DSL into your test classes.

require "petitest/autorun"
require "petitest/dsl"

class ExampleTest < Petitest::Test
  extend ::Petitest::DSL

  # ... your tests ...
end

.desc

Set a description to the following test.

desc "description for this test"
def test_foo
  assert { foo }
end

.test

Define a test with a given description.

test "description for this test" do
  assert { foo }
end

Define a skkipped test.

test "description for this test"

.sub_test

Nest a test group.

sub_test "bar" do
  test "baz" do
    assert { baz }
  end

  sub_test "boo" do
    test "boz" do
      assert { boz }
    end
  end
end