Instead of loading all preload for all tests, adding just those functions that are needed for each. Should reduce test times. Also renaming tests to give some indication of difficulty. Alas they are not run in that order.
16 lines
409 B
Ruby
16 lines
409 B
Ruby
require_relative "helper"
|
|
require "rubyx/rubyxc"
|
|
|
|
module RubyX
|
|
class TestRubyXCliStats < MiniTest::Test
|
|
|
|
def test_stats
|
|
out, err = capture_io {RubyXC.start(["stats" ,
|
|
"--integers=50","--messages=50", "test/mains/source/00_one-call__8.rb"])}
|
|
assert out.include?("Space") , out
|
|
assert out.include?("Total") , out
|
|
assert out.include?("Objects=") , out
|
|
end
|
|
end
|
|
end
|