Commit f09c601e authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud

browser/tests: Put functional tests in dedicated directory

This was becoming a mess
parent 84f44a03
......@@ -28,7 +28,7 @@ class BrowserTest < MiniTest::Test
def set_browser(vidjil_file, analysis_file=nil)
folder_path = Dir.pwd
folder_path.sub! '/browser/test', ''
folder_path.sub! '/browser/test/functional', ''
index_path = 'file://' + folder_path + '/browser/index.html'
data_path = folder_path + vidjil_file
analysis_path = nil
......
......@@ -7,7 +7,7 @@ class TestSegmenterPage < BrowserTest
# Redefine set_browser as the tested webpage is totally different
folder_path = Dir.pwd
folder_path.sub! '/browser/test', ''
folder_path.sub! '/browser/test/functional', ''
index_path = 'file://' + folder_path + '/browser/segmenter_page.html'
print "Open browser\n"
......
......@@ -7,7 +7,7 @@ class TestSegmenterPageErrors < BrowserTest
# Redefine set_browser as the tested webpage is totally different
folder_path = Dir.pwd
folder_path.sub! '/browser/test', ''
folder_path.sub! '/browser/test/functional', ''
index_path = 'file://' + folder_path + '/browser/segmenter_page.html'
print "Open browser\n"
......
rm -f test/*.xml
EXIT=0
for file in test_*rb; do
for file in functional/test_*rb; do
ruby $file;
TMP_EXIT=$?
if [ $TMP_EXIT -ne 0 ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment