Commit 5f528ddd by Christine Lytwynec

Merge pull request #10244 from edx/clytwynec/update-testing-docs

update testing.rst
parents 62633560 b887280a
...@@ -91,7 +91,7 @@ Test Locations ...@@ -91,7 +91,7 @@ Test Locations
- Lettuce Tests: located in ``features`` subpackage within a Django - Lettuce Tests: located in ``features`` subpackage within a Django
app. For example: ``lms/djangoapps/courseware/features`` app. For example: ``lms/djangoapps/courseware/features``
- Bok Choy Acceptance Tests: located under ``common/test/acceptance/tests`` - Bok Choy Acceptance Tests: located under ``common/test/acceptance/tests``
- Bok Choy Accessibility Tests: located under ``common/test/acceptance/accessibility`` - Bok Choy Accessibility Tests: located under ``common/test/acceptance/tests`` and tagged with ``@attr("a11y")``
- Bok Choy PageObjects: located under ``common/test/acceptance/pages`` - Bok Choy PageObjects: located under ``common/test/acceptance/pages``
Factories Factories
...@@ -389,9 +389,10 @@ Bok Choy, a UI-level acceptance test framework for writing robust ...@@ -389,9 +389,10 @@ Bok Choy, a UI-level acceptance test framework for writing robust
`Selenium <http://docs.seleniumhq.org/>`__ `Selenium <http://docs.seleniumhq.org/>`__
tests in `Python <https://www.python.org/>`__, includes the ability to perform tests in `Python <https://www.python.org/>`__, includes the ability to perform
accessibility audits on web pages using `Google Accessibility Developer Tools accessibility audits on web pages using `Google Accessibility Developer Tools
<https://github.com/GoogleChrome/accessibility-developer-tools/>`__. For more <https://github.com/GoogleChrome/accessibility-developer-tools/>`__ or
details about how to write accessibility tests, please read the `Bok `Deque's aXe Core <https://github.com/dequelabs/axe-core/>`__.
Choy documentation <http://bok-choy.readthedocs.org/en/latest/accessibility.html>`__ For more details about how to write accessibility tests, please read
the `Bok Choy documentation <http://bok-choy.readthedocs.org/en/latest/accessibility.html>`__
and the Automated Accessibility Tests `openedx Confluence page and the Automated Accessibility Tests `openedx Confluence page
<https://openedx.atlassian.net/wiki/display/TE/Automated+Accessibility+Tests>`__. <https://openedx.atlassian.net/wiki/display/TE/Automated+Accessibility+Tests>`__.
...@@ -400,8 +401,6 @@ and the Automated Accessibility Tests `openedx Confluence page ...@@ -400,8 +401,6 @@ and the Automated Accessibility Tests `openedx Confluence page
These prerequisites are all automatically installed and available in `Devstack These prerequisites are all automatically installed and available in `Devstack
<https://github.com/edx/configuration/wiki/edX-Developer-Stack>`__ (since the Cypress release), the supported development enviornment for the edX Platform. <https://github.com/edx/configuration/wiki/edX-Developer-Stack>`__ (since the Cypress release), the supported development enviornment for the edX Platform.
* PhantomJS
* Mongo * Mongo
* Memcache * Memcache
...@@ -410,12 +409,12 @@ These prerequisites are all automatically installed and available in `Devstack ...@@ -410,12 +409,12 @@ These prerequisites are all automatically installed and available in `Devstack
To run all the bok choy accessibility tests:: To run all the bok choy accessibility tests::
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility paver test_bokchoy --extra_args="-a 'a11y'"
To run specific tests, use the ``-t`` flag to specify a nose-style test spec To run specific tests, use the ``-t`` flag to specify a nose-style test spec
relative to the ``common/test/acceptance/accessibility`` directory:: relative to the ``common/test/acceptance/tests`` directory::
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_lms_dashboard_axs.py:LmsDashboardAxsTest.test_dashboard_course_listings_axs paver test_bokchoy --extra_args="-a 'a11y'" -t test_lms_dashboard.py:LmsDashboardA11yTest.test_dashboard_course_listings_a11y
Running Lettuce Acceptance Tests Running Lettuce Acceptance Tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
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