File: testunit

package info (click to toggle)
ruby-bootsnap 1.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 520 kB
  • sloc: ruby: 3,637; ansic: 844; sh: 14; makefile: 9
file content (8 lines) | stat: -rwxr-xr-x 208 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/bin/bash

if [[ $# -eq 0 ]]; then
  exec ruby -I"test" -w -e 'Dir.glob("./test/**/*_test.rb").each { |f| require f }' -- "$@"
else
  path=$1
  exec ruby -I"test" -w -e "require '${path#test/}'" -- "$@"
fi