Removing preloads from mains tests

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.
This commit is contained in:
2019-09-24 22:05:38 +03:00
parent 1022390e0f
commit 41eccb9382
24 changed files with 153 additions and 44 deletions

View File

@ -5,8 +5,8 @@ module RubyX
class TestRubyXCliCompile < MiniTest::Test
def test_compile
assert_output(/compiling/) {RubyXC.start(["compile" , "--preload",
"--integers=50","--messages=50","test/mains/source/add__4.rb"])}
assert_output(/compiling/) {RubyXC.start(["compile" ,
"--integers=50","--messages=50","test/mains/source/00_one-call__8.rb"])}
end
end
end

View File

@ -5,8 +5,8 @@ module RubyX
class TestRubyXCliExecute < MiniTest::Test
def test_execute
assert_output(/Running/) {RubyXC.start(["execute" ,"--preload",
"--integers=50","--messages=50" , "test/mains/source/add__4.rb"])}
assert_output(/Running/) {RubyXC.start(["execute" ,
"--integers=50","--messages=50" , "test/mains/source/00_one-call__8.rb"])}
end
end
end

View File

@ -5,8 +5,8 @@ module RubyX
class TestRubyXCliInterpret < MiniTest::Test
def test_interpret
assert_output(/interpreting/) {RubyXC.start(["interpret" ,"--preload",
"--integers=50","--messages=50" , "test/mains/source/add__4.rb"])}
assert_output(/interpreting/) {RubyXC.start(["interpret" ,
"--integers=50","--messages=50" , "test/mains/source/00_one-call__8.rb"])}
end
end
end

View File

@ -5,8 +5,8 @@ module RubyX
class TestRubyXCliStats < MiniTest::Test
def test_stats
out, err = capture_io {RubyXC.start(["stats" ,"--preload",
"--integers=50","--messages=50", "test/mains/source/add__4.rb"])}
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