Skip to content

Commit

Permalink
[webui] the selenium test suite is now fully merged
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Dec 10, 2012
1 parent 8f59337 commit 3ce67d4
Show file tree
Hide file tree
Showing 60 changed files with 138 additions and 4,080 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ env:
# full webrat test suite
- SUBTEST=webui1
- SUBTEST=webui2
# selenium without spider
- SUBTEST=webui-testsuite
# api and webui webrat with latest gems
# - SUBTEST=api REMOVEGEMLOCK=true
# - SUBTEST=webui REMOVEGEMLOCK=true
Expand Down
7 changes: 1 addition & 6 deletions dist/ci/obs_testsuite_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,8 @@ cd src/webui
bundle exec rake ci:setup:minitest test CI_REPORTS=results --trace || ret=1
cd ../..

cd src/webui-testsuite
export OBS_REPORT_DIR=results/
bundle exec ruby ./run_acceptance_tests.rb || ret=1
cd ../..

mkdir results
for i in src/api/results/*.xml src/webui/results/*.xml src/webui-testsuite/results/*.xml; do
for i in src/api/results/*.xml src/webui/results/*.xml; do
cp -v $i results/`echo $i | sed -e 's,/,-,g'`
done

Expand Down
6 changes: 0 additions & 6 deletions dist/ci/obs_testsuite_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,4 @@ mkdir -p coverage
rake test --trace || true
cd ../..

cd src/webui-testsuite
# FIXME there is no point in running this at the moment because we need to add means of starting
# webui and api server under code coverage (easy part) _and_ have jenkins merge the results
ruby ./run_acceptance_tests.rb || true
cd ../..

cleanup
17 changes: 0 additions & 17 deletions dist/ci/obs_testsuite_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,6 @@ case $SUBTEST in
fi
bundle exec rake test --trace || ret=1
;;
webui-testsuite)
cd src/webui-testsuite
if ! bundle exec ./run_acceptance_tests.rb -f; then
ret=1
tail -n 500 ../webui/log/test.log
cat results/*.source.html
fi
;;
webui-testsuite:*)
cd src/webui-testsuite
SUBTEST=${SUBTEST/webui-testsuite:/}
if ! bundle exec ruby ./run_acceptance_tests.rb -f $SUBTEST; then
ret=1
tail -n 500 ../webui/log/test.log
cat results/*.source.html
fi
;;
webui:*)
echo "Enter WebUI rails root"
cd src/webui
Expand Down
7 changes: 1 addition & 6 deletions dist/ci/obs_testsuite_travis_before.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ case "$SUBTEST" in
webui*)
sudo apt-cache show firefox
sudo apt-get install --force-yes firefox=11.0+build1-0ubuntu4
pushd src/webui-testsuite
if test "$REMOVEGEMLOCK" = true; then
rm Gemfile.lock
fi
bundle install
cd ../webui
pushd src/webui
if test "$REMOVEGEMLOCK" = true; then
rm Gemfile.lock
fi
Expand Down
73 changes: 0 additions & 73 deletions dist/ci/obs_testsuite_webui-testsuite.sh

This file was deleted.

3 changes: 0 additions & 3 deletions src/webui-testsuite/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion src/webui-testsuite/AUTHORS

This file was deleted.

Loading

0 comments on commit 3ce67d4

Please sign in to comment.