Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
868f78fd
Commit
868f78fd
authored
Apr 11, 2017
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify a11y test script (so the crawler always runs).
parent
252515e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
22 deletions
+6
-22
scripts/accessibility-tests.sh
+6
-22
No files found.
scripts/accessibility-tests.sh
View file @
868f78fd
#!/usr/bin/env bash
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..."
source
scripts/jenkins-common.sh
...
...
@@ -21,17 +11,11 @@ SELENIUM_BROWSER=phantomjs paver test_a11y --with-xunitmp
echo
"Generating coverage report..."
paver a11y_coverage
#
Force the following if statement to always be tru
e
RUN_PA11YCRAWLER
=
1
#
The settings that we use are installed with the pa11ycrawler modul
e
export
SCRAPY_SETTINGS_MODULE
=
'pa11ycrawler.settings'
if
[
"
$RUN_PA11YCRAWLER
"
=
"1"
]
then
# The settings that we use are installed with the pa11ycrawler module
export
SCRAPY_SETTINGS_MODULE
=
'pa11ycrawler.settings'
echo
"Running pa11ycrawler against test course..."
paver pa11ycrawler
--fasttest
--skip-clean
--fetch-course
--with-html
echo
"Running pa11ycrawler against test course..."
paver pa11ycrawler
--fasttest
--skip-clean
--fetch-course
--with-html
echo
"Generating coverage report..."
paver pa11ycrawler_coverage
fi
echo
"Generating pa11ycrawler coverage report..."
paver pa11ycrawler_coverage
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment