File: run_examples_and_percy.io.rb

package info (click to toggle)
ruby-svg-graph 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,312 kB
  • sloc: javascript: 23,548; ruby: 4,234; xml: 224; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# executes all examples
require 'svggraph'
puts SVG::Graph::VERSION

list = Dir.glob(File.expand_path("../examples/*.rb", __dir__))
list.delete_if {|x| x.include?("run_all.rb")}

list += Dir.glob(File.expand_path("percy.io_tests/*.rb", __dir__))

# run all examples and stored
USE_FOR_TESTING=true
OUTPUT_FOLDER=File.expand_path('percy.io_staticpages', __dir__)
list.each {|file|
  puts file
  eval(File.read(file), binding, file)
}