Commit Graph

735 Commits

Author SHA1 Message Date
Jesse Zoldak
24f90307f7 Remove references to /tmp in tests
Including:

* Change path for mongo_metadata_inheritance to use unique temp dir
* Update SASS_CACHE_PATH with thread-safe temp dir
* Remove hard coded directory reference for grades download tests
* Remove hard coded directory reference for direct mongo test
2014-10-17 10:00:12 -04:00
Adam Palay
1aba7f81b4 disable pycontracts except in development environments (PLAT-122) 2014-10-15 13:22:24 -04:00
Ben Patterson
6bcaf61b0c Introduce new switch for paver run_quality command.
When using -p, the underlying diff-quality command will pass that
number as a value for --fail-under.

For example,
  paver run_quality -p 75

Will pass 75 into the --fail-under switch on diff-quality.

Also upgrades diff-cover in order to take advantage of this funcitonality.
2014-10-15 12:40:59 -04:00
Andy Armstrong
8627fdef32 Support adding students to a cohort via the instructor dashboard.
TNL-163
2014-10-01 09:22:31 -04:00
Ben Patterson
1f196523f3 Paver: pep8/pylint violations limit switch. Fail if limit is breached.
This adds the -l switch, wherein a violations limit is passed in. For
example:
  paver run_pep8 -l 700

Will fail if more than 700 violations are found.

By default, this limit is not enforced (i.e. if the -l switch
is not passed into the command, then a limit will not be put
into effect for that run)
2014-09-30 17:38:33 -04: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
Ben Patterson
1d4ce68d2f Update paver bok_choy (test) commands to reflect new default vars. 2014-09-17 11:06:44 -04:00
clytwynec
3f5b829d0e Merge pull request #5147 from edx/clytwynec/auto_capture_har_on_error
enable auto-capturing of hars in bok-choy tests
2014-09-17 09:15:20 -04:00
Tim Babych
d9df388855 Merge pull request #5221 from edx/tim/sourcemaps-debug-only
Do not generate CSS source maps in production
2014-09-17 13:37:55 +03:00
Ben Patterson
fedba149d2 Merge pull request #5118 from edx/benp/paver-tests
Add tests for paver bok_choy commands
2014-09-16 20:32:15 -04:00
Ben Patterson
ae20b10608 Set paver command tests to run as part of unit test lib suites. 2014-09-16 15:20:22 -04:00
Tim Babych
12f280b62a [TNL-198] Do not generate JS and CSS source maps in production 2014-09-16 15:39:09 +03:00
Sarina Canelake
363ef77e5d LTR i18n tooling 2014-09-15 13:46:06 -04:00
Sarina Canelake
49d069dd9e RTL i18n tooling 2014-09-15 13:46:06 -04:00
Christine Lytwynec
1be81109e5 enable auto-capturing of hars in bok-choy tests 2014-09-15 12:14:47 -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
Calen Pennington
1d9c272a2e LMS-11282 Paver Lettuce Acceptance support for Split; default store set to Draft. 2014-09-11 10:48:08 -04:00
Ben Patterson
6c75704476 add paver test for bok-choy default command. 2014-09-05 13:03:03 -04:00
Christine Lytwynec
4270d8f01b change default settings for servers/assets paver tasks from "dev" to "devstack" 2014-09-02 10:01:55 -04:00
clytwynec
118baafb1f Merge pull request #4943 from edx/mvo/bumping_bok_choy_version
bumping bok choy version
2014-08-29 10:08:51 -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
Calen Pennington
562f0e3197 Add bulk operations to split modulestore 2014-08-27 16:29:46 -04:00
Jesse Zoldak
cc41ccb48c Define SELENIUM_DRIVER_LOG_DIR in paver bok-choy command 2014-08-22 16:57:23 -04:00
Ben Patterson
cb74f55aad Merge pull request #4828 from edx/benp/workaround-npm-error
Paver: Check for the npm registry and set it if necessary.
2014-08-20 13:16:21 -04:00
Ben Patterson
b2482f54f7 Check for npm registry and set it if necessary.
If paver is being run by a user that is not the same as the user
that installed npm on the guest machine, then paver install_prereqs fails
with the following error:

  ---> pavelib.prereqs.install_node_prereqs
  npm config set registry http://registry.npmjs.org/
  npm ERR! Error: EPERM, chown '/home/jenkins/.npmrc'
  npm ERR!  { [Error: EPERM, chown '/home/jenkins/.npmrc'] errno: 50, code: 'EPERM', path: '/home/jenkins/.npmrc' }
  npm ERR!
  npm ERR! Please try running this command again as root/Administrator.

  npm ERR! System Linux 3.2.0-23-generic
  npm ERR! command "/usr/bin/node" "/usr/bin/npm" "config" "set" "registry" "http://registry.npmjs.org/"
  npm ERR! cwd /home/jenkins/shallow-clone
  npm ERR! node -v v0.10.30
  npm ERR! npm -v 1.4.21
  npm ERR! path /home/jenkins/.npmrc
  npm ERR! code EPERM
  npm ERR! errno 50
  npm ERR! stack Error: EPERM, chown '/home/jenkins/.npmrc'
  npm ERR!
  npm ERR! Additional logging details can be found in:
  npm ERR!     /home/jenkins/shallow-clone/npm-debug.log
  npm ERR! not ok code 0

  Captured Task Output:
  ---------------------

  ---> pavelib.prereqs.install_prereqs
  ---> pavelib.prereqs.install_ruby_prereqs
  ---> pavelib.prereqs.install_node_prereqs
  npm config set registry http://registry.npmjs.org/

  Build failed running pavelib.prereqs.install_prereqs: Subprocess return code: 50

This change is a workaround. It will first see if the value is set. In the case
that is it not set, it will attempt to set it. (It will then fail; however,
re-running the task will subsequently be successful.)
2014-08-20 12:39:56 -04:00
Jesse Zoldak
4d5b948928 Merge pull request #4748 from Stanford-Online/jbau/parallel-unit-tests
make unit tests respect mongo port/host settings (with default)
2014-08-15 10:56:52 -04:00
Will Daly
680d5031d7 Merge pull request #4802 from edx/will/unit-test-staticfiles
Unit tests don't need assets
2014-08-12 16:42:19 -04:00
Will Daly
a827df27fe Remove update assets from unit test suite
Update settings so unit tests pass
2014-08-12 15:08:39 -04:00
Jesse Zoldak
e399c0b198 Clean out the mako temp dirs before running tests 2014-08-12 11:10:53 -04:00
Jason Bau
b55362b925 make unit tests respect mongo port/host settings (with default)
settings are read in from environment variable
2014-08-11 14:17:29 -07:00
clytwynec
8c8d388d1a Merge pull request #4744 from edx/clytwynec/remove_flaky_decorator_from_tests
removing "flaky" plugin, since it is not reporting failures properly
2014-08-08 10:15:03 -04:00
Christine Lytwynec
0243d0afa1 removing "flaky" plugin, since it is not reporting failures properly 2014-08-07 16:48:31 -04:00
Daniel Friedman
4b6035bafb Automatically collect HAR data for performance testing 2014-08-07 12:27:38 -04:00
Ben Patterson
fa10274d6c Revert "bok-choy: check mysql the old way." 2014-08-01 16:41:50 -04:00
Ben Patterson
e6d6a3bf92 bok-choy: check mysql the old way. 2014-08-01 16:15:00 -04:00
Ben Patterson
c8ef4a1b89 Bok-choy: check if mysql is running, even if it's not a daemon.
The impetus is integration with test environments, where mysql is not configured
as a service.
2014-08-01 14:01:47 -04:00
Christine Lytwynec
c7df52c511 enable sharding of bok-choy tests 2014-07-30 11:09:34 -04:00
Feanil Patel
c9a63657f6 Check to make sure that the mysql service is running. 2014-07-15 13:54:25 -04:00
Minh Tue Vo
be3c517f2a setting default system to be lms 2014-07-11 14:44:43 -04:00
Sarina Canelake
a9b35ab22b Clean up i18n paver commands 2014-07-07 12:40:50 -04:00
Christine Lytwynec
52bc17545b skipping update assets, not just collectstatic, in unit tests 2014-07-03 11:56:13 -04:00
Christine Lytwynec
3bd404c92f updating diff-cover to 0.5.0 2014-06-26 09:55:46 -04:00
Christine Lytwynec
af9ae6753b Deprecating acceptance_tests from rake to paver 2014-06-25 10:30:19 -04:00
Dave St.Germain
94cd1e659d Change reference to installed i18n command. 2014-06-23 15:21:40 -04:00
Dave St.Germain
834c2c472f Moved test_generate from i18n-tools 2014-06-23 10:06:28 -04:00
clytwynec
7ff3f08f92 Merge pull request #4159 from edx/clytwynec/updating_update_assets_prereqs
stop update_assets commands from being called extra times
2014-06-20 09:22:10 -04:00
Christine Lytwynec
d6ed01bbf0 deprecating bok-choy tasks from rake to paver 2014-06-19 09:06:41 -04:00
clytwynec
e2936d0eb2 Merge pull request #4020 from edx/clytwynec/rake2paver-i18n
Clytwynec/rake2paver i18n
2014-06-19 09:03:33 -04:00
Christine Lytwynec
245ed42ddb stop update_assets commands from being called extra times 2014-06-18 16:42:39 -04:00
Christine Lytwynec
35efa6af6f deprecating i18n tasks from rake to paver 2014-06-18 16:23:07 -04:00