Sha256: 635e9a16de18d95a35c54586a62130ae2162ee8776f2550f968d601eab9d5855
Contents?: true
Size: 929 Bytes
Versions: 5
Compression:
Stored size: 929 Bytes
Contents
## # A custom runner for minitest. # It is created to have a "simpler" interface than original rake task provides. # - https://stackoverflow.com/questions/4788288/how-to-run-all-tests-with-minitest ## ## # Takes the current working directory. # - https://ruby-doc.org/core-2.7.0/Dir.html#method-c-pwd # current_dir = ::Dir.pwd ## # Adds `test` to the load path in order to allow writing simply `require "test_helper"` in test files. # - https://thoughtbot.com/blog/following-the-path # # NOTE: `unless` for idempotence. # $LOAD_PATH.unshift("#{current_dir}/test") unless $LOAD_PATH.include?("#{current_dir}/test") ## # Recursively selects all `*_test.rb` files from the `test` folder or takes files passed in `ARGV`. # - https://lofic.github.io/tips/ruby-recursive_globbing.html # files = ::ARGV.empty? ? ::Dir.glob("#{current_dir}/test/**/*_test.rb") : ::ARGV.to_a ## # Runs test files. # files.each { |file| require file }
Version data entries
5 entries across 5 versions & 1 rubygems