aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPjotr Prins2016-04-26 16:23:38 +0000
committerPjotr Prins2016-04-26 16:23:38 +0000
commitebf1db54525a6f344725717f83dfeb1f7b1ada18 (patch)
tree0a03cc46b0f8022e8cbdd8e47e53406b4175d8b8 /bin
parent95a797509caae727ae204861e5aa9402fdd9ecc4 (diff)
downloadgenenetwork2-ebf1db54525a6f344725717f83dfeb1f7b1ada18.tar.gz
Test: main page and first search
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test-website37
1 files changed, 37 insertions, 0 deletions
diff --git a/bin/test-website b/bin/test-website
new file mode 100755
index 00000000..b766edd8
--- /dev/null
+++ b/bin/test-website
@@ -0,0 +1,37 @@
+#!/usr/bin/env ruby
+
+
+USAGE = <<EOT
+This is Mechanical-Rob - an automated web server tester for
+ Genenetwork.org that uses the brilliant
+ mechanize gem.
+
+To use this software you need to install mechanize. Run it from
+the root of the genenetwork2 source tree as, for example,
+
+ ./bin/test-website http://localhost:5003/ (default)
+
+For more information see http://genenetwork.org/
+
+EOT
+
+libpath = File.dirname(File.dirname(__FILE__))
+$: << File.join(libpath,'test/lib')
+
+$stderr.print USAGE
+
+$host =
+ if ARGV.size>0
+ ARGV.shift
+ else
+ "http://localhost:5003"
+ end
+
+$stderr.print "Testing <",$host,">\n"
+
+require 'mechanize'
+require 'minitest/spec'
+require 'minitest/autorun'
+require 'main_web_functionality'
+
+