Commit 510eaa3c by Christine Lytwynec

Merge pull request #12423 from edx/clytwynec/ac-367

Speed up pa11ycrawler runs on Jenkins, Update pa11ycrawler to v0.0.2
parents e88a4e5c f68747ec
...@@ -134,8 +134,8 @@ def perf_report_bokchoy(options): ...@@ -134,8 +134,8 @@ def perf_report_bokchoy(options):
('with-html', 'w', 'Include html reports'), ('with-html', 'w', 'Include html reports'),
make_option('--course-key', help='Course key for test course'), make_option('--course-key', help='Course key for test course'),
make_option( make_option(
"--skip-fetch", "--fetch-course",
action="store_false", action="store_true",
dest="should_fetch_course", dest="should_fetch_course",
help='Course key for test course', help='Course key for test course',
), ),
......
...@@ -67,7 +67,7 @@ git+https://github.com/edx/rfc6266.git@v0.0.5-edx#egg=rfc6266==0.0.5-edx ...@@ -67,7 +67,7 @@ git+https://github.com/edx/rfc6266.git@v0.0.5-edx#egg=rfc6266==0.0.5-edx
# Used for testing # Used for testing
git+https://github.com/edx/lettuce.git@0.2.20.002#egg=lettuce==0.2.20.002 git+https://github.com/edx/lettuce.git@0.2.20.002#egg=lettuce==0.2.20.002
git+https://github.com/edx/pa11ycrawler.git@0.0.1#egg=pa11ycrawler git+https://github.com/edx/pa11ycrawler.git@0.0.2#egg=pa11ycrawler
# Our libraries: # Our libraries:
git+https://github.com/edx/XBlock.git@xblock-0.4.10#egg=XBlock==0.4.10 git+https://github.com/edx/XBlock.git@xblock-0.4.10#egg=XBlock==0.4.10
......
#!/usr/bin/env bash
set -e
echo "Setting up for accessibility tests..."
source scripts/jenkins-common.sh
echo "Running pa11ycrawler against test course..."
paver pa11ycrawler
echo "Generating coverage report..."
paver pa11ycrawler_coverage
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
###############################################################################
#
# Usage:
# To run just tests, without pa11ycrawler:
# ./scripts/accessibility-tests.sh
#
# To run tests, followed by pa11ycrawler:
# RUN_PA11YCRAWLER=1 ./scripts/accessibility-tests.sh
#
###############################################################################
echo "Setting up for accessibility tests..." echo "Setting up for accessibility tests..."
source scripts/jenkins-common.sh source scripts/jenkins-common.sh
...@@ -9,3 +20,12 @@ SELENIUM_BROWSER=phantomjs paver test_a11y ...@@ -9,3 +20,12 @@ SELENIUM_BROWSER=phantomjs paver test_a11y
echo "Generating coverage report..." echo "Generating coverage report..."
paver a11y_coverage paver a11y_coverage
if [ "$RUN_PA11YCRAWLER" = "1" ]
then
echo "Running pa11ycrawler against test course..."
paver pa11ycrawler --fasttest --fetch-course --with-html
echo "Generating coverage report..."
paver pa11ycrawler_coverage
fi
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