aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPjotr Prins2016-09-26 12:29:21 +0000
committerPjotr Prins2016-09-26 12:29:21 +0000
commitfb754ded72f3b2303277f86b75b9fae8d352c4cf (patch)
tree212eb6e82a39089d19e5bb213303b5a52c7caaac /bin
parent2f9055a2b77386a7b91b9257f86b50f1432e47cd (diff)
downloadgenenetwork2-fb754ded72f3b2303277f86b75b9fae8d352c4cf.tar.gz
Test: --all switch added
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test-website20
1 files changed, 12 insertions, 8 deletions
diff --git a/bin/test-website b/bin/test-website
index 1d6481f4..b693bd60 100755
--- a/bin/test-website
+++ b/bin/test-website
@@ -40,6 +40,10 @@ opts = OptionParser.new do |o|
end
end
+ o.on('--all', 'Run all tests') do
+ options[:all] = true
+ end
+
o.on('-l','--link-checker', 'Check for dead links') do
options[:link_checker] = true
end
@@ -88,16 +92,16 @@ require 'minitest/autorun'
libpath = File.dirname(File.dirname(__FILE__))
$: << File.join(libpath,'test/lib')
-if options[:link_checker]
- require 'link_checker'
-else
- require 'main_web_functionality'
+require 'main_web_functionality'
+
+if options[:all] or options[:mapping_test]
+ require 'mapping'
end
-if options[:navigation_test]
- require 'navigation'
+if options[:all] or options[:link_checker]
+ require 'link_checker'
end
-if options[:mapping_test]
- require 'mapping'
+if options[:all] or options[:navigation_test]
+ require 'navigation'
end