Skip to content

backupify/minitest-suite_callbacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minitest-suite_callbacks

Build Status Coverage Status Code Climate

before_suite and after_suite callbacks for Minitest

Installation

gem install 'minitest-suite_callbacks'

Usage

# in test_helper.rb
Minitest::Spec.extend(Minitest::SuiteCallbacks)

# in test
class MyTest < Minitest::Spec
  before_suite do
    # do something before any tests in this class run
  end

  after_suite do
    # clean up after all tests in this class run
  end
end

TODO

  • generate fields filtered out of sandbox
  • how does it interact with factory girl?
  • best practices docs (db cleaner etc)
  • general refactoring
  • does it work with multiple before_suites?
  • allow for multiple callbacks; separate code into classes; only one sandbox

About

before_suite and after_suite callbacks for Minitest

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages