Commit Graph

51 Commits

Author SHA1 Message Date
M. Zulqarnain
e35d3de376 refactor: pyupgrade on docs & pavelib (#26768) 2021-03-05 15:24:59 +05:00
M. Zulqarnain
bc568309ec BOM-1701: Ran pyupgrade on pavelib (#24230) 2020-06-17 17:09:38 +05:00
Feanil Patel
9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Calen Pennington
5025567711 Add paver commands and environment variables to capture and run coverage-driven test selection 2019-07-24 12:06:07 -04:00
arbisoft
0726356d7c Fixing python-modernize issues. 2019-07-10 18:35:47 +05:00
Jeremy Bowman
a9cd9de89f TE-2647 Stop running pa11ycrawler (#20682) 2019-05-24 11:02:49 -04:00
Matthew Piatetsky
6cf44a0467 fix unicode strings in pavelib/ 2019-02-05 09:14:20 -05:00
cclauss
8fca11b85c Use print() function in both Python 2 and Python 3 2019-01-13 17:16:37 +01:00
Jeremy Bowman
713d64e1e2 TE-2702 Update Read the Docs links to HTTPS 2018-08-15 17:34:01 -04:00
Ned Batchelder
e23e3a0486 Fix a number of unused-import pylint violations 2017-11-21 19:57:06 -05:00
Michael Youngstrom
a6b55c2d17 Remove coverage reports for a11y and bokchoy tests by default 2017-11-13 12:28:07 -05:00
Andy Armstrong
93235d118d Reorder imports using isort (except lms and cms) 2017-05-30 16:04:54 -04:00
Michael Youngstrom
067348b858 Allow Pa11ycrawler to run against a single url
Utilize scrapy parse

specify custom callback and add port

Getting rid of scrapy parse. A modified crawl will work

remove log

Remove unnecessary input options

Remove extra empty line

version bump v1.5.9

Reduce duplicate code

add in port and simplify further

clean command further

add port to basic command

Bump Pa11yversion to the newest version
2017-02-21 15:53:53 +00:00
David Baumgold
18500472c6 Use updated, simplifed version of pa11ycrawler 2016-08-15 14:24:17 -04:00
Calen Pennington
d8defaa45a Clarify how options are passed to paver tasks, so that pa11y subtasks get needed information 2016-08-03 16:13:10 -04:00
Calen Pennington
2983b3da5f Correctly pass bok-choy specific options through to the BokChoyTestSuite 2016-08-03 16:13:10 -04:00
Calen Pennington
ea28eb6197 Revert "Revert "Merge pull request #13021 from cpennington/paver-timing""
This reverts commit acf50c4469.
2016-08-03 16:13:10 -04:00
Calen Pennington
acf50c4469 Revert "Merge pull request #13021 from cpennington/paver-timing"
This reverts commit ed80381b41, reversing
changes made to 205cb8b3eb.
2016-07-26 13:32:59 -04:00
Calen Pennington
5f05c66d31 Get rid of the extra parse_bokchoy_opts step for passing arguments to a BokChoySuite 2016-07-22 10:57:09 -04:00
Calen Pennington
8c3d4ce85c Split actions needed for bok_choy tests into smaller tasks to get more granular timing information 2016-07-22 10:57:08 -04:00
Calen Pennington
fa52573277 Move the definition of shared bok_choy task options into a separate file 2016-07-22 10:54:48 -04:00
Calen Pennington
f94530ba12 [EV-62] Add the ability to log timing information during paver tasks 2016-07-22 10:54:48 -04:00
Calen Pennington
0e90567f37 Remove the --pdb option, because it was just a passthrough to nose 2016-06-28 13:33:33 -04:00
Calen Pennington
ef89c75b19 Deprecate paver arguments with '_' in them in favor of versions with '-' 2016-06-27 15:21:28 -04:00
Calen Pennington
206cedf55e Deprecate extra_args in favor of just passing through all unknown options 2016-06-27 15:19:50 -04:00
Christine Lytwynec
0f90b92775 Add skip_clean option to pa11ycrawler 2016-05-16 11:12:03 -04:00
Christine Lytwynec
f68747ec96 Speed up pa11ycrawler runs on Jenkins, Update pa11ycrawler to v0.0.2 2016-05-12 11:33:58 -04:00
Christine Lytwynec
645839b81d Fix default args for paver pa11ycrawler 2016-04-22 13:58:19 -04:00
Christine Lytwynec
6e93cee2da add --skip-fetch flag, update start_urls, update auto_auth to include redirect_to param 2016-04-21 14:21:16 -04:00
Christine Lytwynec
a14718bb92 Add pa11ycrawler command 2016-04-11 15:47:26 -04:00
Omar Khan
d426931e40 Add --save_screenshots option to paver test_bokchoy 2016-04-01 08:56:27 +07:00
Eric Fischer
be00a96129 Get environment variable for bok-choy-custom runs 2016-03-22 10:16:30 -04:00
cahrens
0c9937889b Enabling XSS vulnerability flag for bok choy tests 2016-03-22 10:16:27 -04:00
Ned Batchelder
f5d0f3ff55 Remove useless pylint suppressions 2015-11-22 07:41:19 -05:00
Christine Lytwynec
468864a314 add paver test_a11y and a11y_coverage commands 2015-11-05 13:55:35 -05:00
Ben Patterson
634d0ffd9e Allow bok-choy default_store to be controlled by env vars. 2015-11-04 09:28:28 -05:00
Ben Patterson
7eb9cecb9b Ability to run bok-choy in multiprocess mode.
This includes:
* Ability to specify number of processes to run bok-choy tests in
* A forked nose commit to get the multiprocess plugin's logging to work
* A different plugin (xunitmp) must be used for pulling together xunit results

This works by:
* Starting the various servers that are needed for the acceptance test environment
* Running the tests themselves in multiprocess mode
2015-11-03 08:19:20 -05:00
Matt Drayer
1eab25f292 mattdrayer/increment-edx-lint: Bump to v0.2.9 and address pylint/pep8 violations
* Fix paver violations to stablize edx-lint update
* Parens, Line2Long
* Fix missing docstrings
* Fix PEP8 issues
* Address PR feedback (thanks @nedbat!)
2015-10-19 10:11:59 -04:00
Sarina Canelake
b41e70f541 Remove Pylint violations deprecated-pragma, bad-option-value 2015-07-13 17:33:26 -04:00
Jesse Zoldak
021e62111e Add ability to specify starting dir for bok-choy tests 2015-05-21 09:46:45 -04:00
Ben Patterson
db285cab02 Paver: Ability to run only servers or only tests
This would allow a user to set up and run servers, with an open prompt for killing
them. Likewise a user could open a different terminal session and run tests only.

How-to:
* At a terminal/ssh session, start bok-choy servers with
    `paver test_bokchoy --serversonly`
    (or, if you've already run collectstatic on your system:
    `paver test_bokchoy --serversonly --fasttest`)
* When the above is running, you can now open a separate terminal/ssh session
and run:
    `paver test_bokchoy -t my_tests --testsonly`

Keep in mind, the 'testsonly' flag does no setup. There is some minimal teardown; however,
such as clearing mongo and flushing the lms database. (Some tests have non-unique identifiers
and could not be run more than once.)
2015-05-06 11:49:25 -04:00
David Baumgold
6af95ae828 Enable --pdb debugging
This allows developers to pass the `--pdb` flag to paver test commands,
and that flag will be proxied to the `nosetests` command. It's useful
for debugging purposes.
2015-04-16 17:04:59 -04:00
Jesse Zoldak
e5132e3f74 Remove unused paver option ptests 2015-04-08 11:57:02 -04:00
stv
ed36b2db55 Fix PEP8: E123 closing bracket does not match
indentation of opening bracket's line
2015-02-27 10:04:52 -08:00
Ben Patterson
a01fbefcf2 Refactor default_store logic in paver test_bokchoy 2014-12-31 15:39:23 -05:00
Christine Lytwynec
b059d37b95 skipping the firefox version validation if firefox is not the browser being used 2014-09-25 16:29:21 -04:00
Nimisha Asthagiri
3a772752de LMS-11286 Paver Bokchoy support for Split; default store set to Split. 2014-09-11 10:48:09 -04:00
Minh Tue Vo
688909eb76 bumping bok choy version
check firefox version, raise exception with instructions for updating
2014-08-28 16:58:55 -04:00
Daniel Friedman
4b6035bafb Automatically collect HAR data for performance testing 2014-08-07 12:27:38 -04:00
Christine Lytwynec
c7df52c511 enable sharding of bok-choy tests 2014-07-30 11:09:34 -04:00