Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on May 2, 2015
  1. @zamith
Commits on Apr 30, 2015
  1. @zamith

    Refactors runner into separate classes

    zamith authored
    Adds more benchmarks, and stores results in a benchmarks directory, so
    that they can be compared over time.
Commits on Apr 29, 2015
  1. @zamith
Commits on Apr 27, 2015
  1. @zamith

    Add ruby 2.2 support on the test

    zamith authored
    The tests were assuming that test unit was present on the stdlib, which
    as of Ruby 2.2 is no longer true
    (https://bugs.ruby-lang.org/issues/9711).
Commits on Apr 26, 2015
  1. @zamith

    Extract a strategy for each supported framework into a proper file

    zamith authored
    This is a refactor that should not affect any public facing methods.
    Handling different frameworks (or different versions of the same
    framework) was becoming messy really fast. The conditionals for each of
    them were scattered through the code. Thus, the solution was to use the
    strategy pattern (almost), and abstract the differences into what I
    called a runner.
    
    The different runners could not be injected into the initializer as a
    dependency, because at that point the testing framework is not yet
    loaded, which means there is no way of knowing what runner to use. So,
    it is lazy loaded, and only calculated when it is first used.
    
    Removed the main Runner class from the M module file, in order to make it
    simpler and easier to understand and reason about.
    
    The framework runner class now uses instance methods instead of class
    methods, mostly because of a personal preference, but also because I
    feel it instance methods are more flexible, and easier to change.
  2. @zamith
  3. @zamith

    Merge branch 'warning-free' of git://github.com/teoljungberg/m into t…

    zamith authored
    …eoljungberg-warning-free
    
    Conflicts:
    	lib/m.rb
    	test/minitest_test.rb
    	test/options_test.rb
Commits on Sep 6, 2014
  1. @teoljungberg
Commits on Mar 21, 2014
  1. @zamith
  2. @zamith

    Support for Minitest 5

    zamith authored
    Uses Appraisal in order to test the different versions of minitest. The
    entire test suite will not run with minitest 5, since ruby relies on
    `Minitest::Unit::TestCase`, which was deprecated.
    
    Also, the previous solution was flawed since the `Minitest` constant was
    defined in minitest 4 as an alias to `MiniTest`, therefore I also check
    for the version number (`Minitest::Unit::VERSION`).
    
    I extracted the logic of checking which framework is loaded to a
    separate class, `M::Frameworks`, so it can be checked them on both the
    tests and the library code.
Commits on Dec 6, 2013
  1. @tristandunn

    Regexp.escape test names.

    tristandunn authored
  2. @maxidr @tristandunn

    It runs more than one method when names start equals

    maxidr authored tristandunn committed
Commits on Dec 5, 2013
  1. @tristandunn

    Add Coveralls back.

    tristandunn authored
    Fixes #33.
Commits on Jun 11, 2013
  1. @bcardarella

    Support completely empty test classes

    bcardarella authored
    In the case of an empty test class similar to:
    
    class SomeTest < Test::Unit::TestCase
    end
    
    `m` was bombing out because `exit!` expects a non-nil value. The
    `Runner#run` method was only returning values in the case of tests that
    were found or tests not found within a file that does have tests. The
    third case of no tests at all was not being covered and would result in
    a `nil` being returned.
Commits on Dec 21, 2012
  1. Move to using #exit only and force M::Runner.run to exit instead of b…

    authored
    …urying that throughout the lib so M can be used from another library
Commits on Jul 31, 2012
Commits on Apr 7, 2012
  1. @cldwalker

    add line option, closes #9

    cldwalker authored
  2. @cldwalker

    add -h/--help using optparse, closes #8

    cldwalker authored
    also added --version
  3. add MiniTest::Unit support

    authored
Commits on Jan 12, 2012
Commits on Dec 26, 2011
  1. move line checking within to TestCollection

    Nick Quaranto and Josh Clayton authored committed
  2. support multiple examples

    authored
Commits on Dec 25, 2011
  1. reorganize tests a bit

    authored
  2. deal with spaces in #test calls

    authored
Commits on Dec 24, 2011
  1. refactor assertions

    authored
  2. run inside of tests

    authored
  3. it works, kinda

    authored
Something went wrong with that request. Please try again.