Skip to content

Commit

Permalink
[Truffle] JT: jt test fast [*ARGS]
Browse files Browse the repository at this point in the history
* 21s versus 74s while skipping only 32 examples out of 4056 for all specs.
* 5 vs 43s for language specs.
  • Loading branch information
eregon committed Jan 14, 2015
1 parent 65ce1eb commit e8ca19d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tool/jt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def help
puts 'jt clean clean'
puts 'jt rebuild clean and build'
puts 'jt test run all specs'
puts 'jt test fast run all specs except sub-processes, GC, sleep, ...'
puts 'jt test spec/ruby/language run specs in this directory'
puts 'jt test spec/ruby/language/while_spec.rb run specs in this file'
puts 'jt tag spec/ruby/language tag failing specs in this directory'
Expand All @@ -61,8 +62,13 @@ def rebuild
end

def test(*args)
options = %w[--excl-tag fails]
if args.first == 'fast'
args.shift
options += %w[--excl-tag slow]
end
args = [':language', ':core'] if args.empty?
mspec 'run', '--excl-tag', 'fails', *args
mspec 'run', *options, *args
end

def tag(path, *args)
Expand Down

0 comments on commit e8ca19d

Please sign in to comment.