Rakefile in svg-graph-2.2.0 vs Rakefile in svg-graph-2.2.1
- old
+ new
@@ -19,14 +19,24 @@
# self.developer('Manuel Widmer','m-widmer_AT_gmx.com')
# self.rubyforge_name = 'ruby-statsample' # if different than 'svg_graph'
# self.remote_rdoc_dir = 'svg-graph'
#end
-# run all unit tests with 'rake test'
-task default: %w[test]
+# by default run all unit tests with 'rake test'
+task default: [:test]
task :test do
- ruby "test/test_data_point.rb"
- ruby "test/test_plot.rb"
- ruby "test/test_svg_graph.rb"
- ruby "test/test_graph.rb"
+ [
+ "test/test_data_point.rb",
+ "test/test_plot.rb",
+ "test/test_svg_graph.rb",
+ "test/test_graph.rb",
+ "test/run_examples_and_percy.io.rb"
+ ].each do |file|
+ # exec all above scripts (with simplecov if env is set)
+ args = file
+ if ENV['COVERAGE']
+ args = '-r ./test/simplecov ' + file
+ end
+ ruby args
+ end
end