This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
forked from reviewboard/reviewboard
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Selenium test suite for Review Board.
This adds a new Selenium test suite for testing various user-facing parts of Review Board through the Selenium browser automation tools. The tests cover most common operations. In particular: * Logging in * Creating/modifying/publishing a review request * Closing review requests * Uploading diffs * Uploading screenshots * Viewing diffs * Reviewing * Commenting (diffs and screenshots) * And more... This provides full coverage of our datastore.js, meaning that we have complete UI coverage for all calls to our web API. When we start moving to the new web API, this should help us catch any regressions. The tests live in the webtests/ directory, outside of the main reviewboard/ package directory. The reason for this is that we don't necessarily want to have these tests run every time the full test suite is run, as they need to mess with the browser, and they're slow. If we choose, we can run these tests with the main test suite by doing: $ ./reviewboard/manage.py test -- --with-webtests Or, to run just the web tests: $ ./reviewboard/manage.py test -- webtests Or: $ ./contrib/internal/webtests.sh This updates some URLs and templates in order to add identification information to some elements in order to let us more easily test them. It also fixes up some of the test runner code to properly build and tear down the media directories, so that we can access all bundled media and uploaded media for the tests. Reviewed at http://reviews.reviewboard.org/r/1527/
- Loading branch information
Showing
14 changed files
with
1,087 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./reviewboard/manage.py test -- webtests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[nosetests] | ||
verbosity=3 | ||
with-coverage=1 | ||
with-doctest=1 | ||
doctest-extension=.txt | ||
cover-package=reviewboard | ||
detailed-errors=1 | ||
exclude=setup_test_environment|teardown_test_environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.