{"repo":"peterc/testrocket","free":true,"listed":false,"github":"https://github.com/peterc/testrocket","clone":"git clone https://github.com/peterc/testrocket.git","description":"Super simple Ruby testing library","language":"Ruby","stars":238,"topics":["testing-tools","ruby"],"license":null,"category":"dev-tools","readme_excerpt":"/ ' / \\ / / // \\ \\ ( ) ( < / \\ \\ /\\ \\ / \\ \\ \\\\ \\ Testrocket is a super simple (as simple as it gets really) testing library for Ruby 2.0 and higher. It has also been modernized and tested to run on Ruby 3.4 and Ruby 4.0.2. It was initially developed for a CodeBrawl contest and it got first place! People asked me to release it 'for real' so here we are. To install: gem install testrocket .. or add it to your Gemfile in the usual way. As yet there are no useful bits and pieces for creating test files (look at the example, it's easy!) or Rake tasks. Note: Prior to version 1, TestRocket extended built-in classes to work, but has (in 2019) been modernized to use refinements to avoid it clashing with third party libraries in real world scenarios (yes, people use this library in real world code!) Dependencies ------------ - Ruby 2.1 or higher (tested on Ruby 3.4 and 4.0.2) - minitest/spec Example ------- As well as running tests in separate test files in the 'traditional' way, TestRocket can also be used 'inline' with real world code. A trivial example: In this way, your class is tested each time you run the app in development or test modes. Note that if TestRocket detects RACK ENV is production , RAILS ENV is production or Rails is running and Rails.env.production? is true, the usual TestRocket methods will simply pass straight through so as to not impede performance on the loading of your app. Other Features -------------- By default, output is written to $stderr (as well as retur","default_branch":null,"files":null,"tree":[],"storefront":"/r/peterc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/peterc/testrocket/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}