Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test framework including test for studio.js #123

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,18 @@ Staff Grading
Testing
-------

Assuming ``edx-sga`` is installed as above, you can run tests like so::
Assuming ``edx-sga`` is installed as above, you can run Python tests like so::

$ python manage.py lms --settings=test test edx_sga

To get statement coverage::

$ coverage run --source edx_sga manage.py lms --settings=test test edx_sga
$ coverage report -m

To run JavaScript tests, install js-test-tool_ and run::

$ js-test-tool run ./edx_sga/static/js_test.yml --use-firefox

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to specify that user should be location below to run test (Devstack) ?

/edx/app/edxapp/venvs/edxapp/src/edx-sga

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll get @carsongee's opinion on this

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests can be run outside of the devstack currently so the relative path should work fine. I'll make an issue to get the test runner to work together with the test runner in the devstack.


.. _js-test-tool: https://github.com/edx/js-test-tool

92 changes: 92 additions & 0 deletions edx_sga/static/js/lib/URI.js

Large diffs are not rendered by default.

Loading