Commit Graph

208 Commits

Author SHA1 Message Date
Ben Patterson
1e47f85359 Merge pull request #8172 from edx/benp/revert-pycontracts-enablement
Revert "Enable PyContracts during tests"
2015-05-26 09:34:05 -04:00
Ben Patterson
c2a0777f78 Merge pull request #8138 from edx/benp/add-jshint
Benp/add jshint
2015-05-22 17:54:55 -04:00
Ben Patterson
aebb35d361 Use jshint in paver, include in builds.
JShint will be executed with paver run_jshint, which will use a defined set of
directories (likewise defined are directories to ignore). A limit can be imposed
on the total number of violations. Note that this change does NOT include adding
jshint to diff-quality or `paver run_quality`.
2015-05-22 16:06:13 -04:00
Ben Patterson
176770efad Revert "Enable PyContracts during tests"
This reverts commit 4312c0e763.
2015-05-22 15:05:11 -04:00
Jesse Zoldak
021e62111e Add ability to specify starting dir for bok-choy tests 2015-05-21 09:46:45 -04:00
Christine Lytwynec
2f6cff5d69 Merge pull request #8128 from edx/clytwynec/fix_cyclic_import_in_pavelib
Fix cyclic import in pavelib
2015-05-20 16:51:10 -04:00
Calen Pennington
a2cbd16680 Merge pull request #7789 from cpennington/wrap-csm
Wrap access to CSM (inside FieldDataCache) to use the new interface
2015-05-20 16:11:07 -04:00
Calen Pennington
4312c0e763 Enable PyContracts during tests 2015-05-20 15:07:18 -04:00
Christine Lytwynec
63233aa5d8 Fix cyclic import in pavelib 2015-05-20 14:11:54 -04:00
Christine Lytwynec
8f22b51117 Merge pull request #8056 from edx/clytwynec/TE-868
use mock_open for paver quality tests
2015-05-15 15:12:01 -04:00
Christine Lytwynec
71bc1476e8 start paver quality tests with clean paver task environment 2015-05-15 10:08:23 -04:00
Ned Batchelder
78e9445aa1 Add super() calls to setUp/tearDown that are missing them
Also, I replaced a number of tearDown methods with addCleanup instead.
And also remove some unneeded patch.stopall() calls.
2015-05-14 18:14:21 -04:00
Christine Lytwynec
657f15638d use mock_open for paver quality tests 2015-05-14 14:51:08 -04:00
Sarina Canelake
e784a43487 Update translations (autogenerated message) 2015-05-08 13:57:58 -04:00
Christine Lytwynec
4f71158057 Merge pull request #7963 from edx/clytwynec/TE-868
skip test that are causing incorrect pep8 reports in jenkins builds
2015-05-08 08:54:24 -04:00
Clinton Blackburn
fc61c292b9 Updated Take Photo page to include verification requirements
As part of the unification of verify later/now, the take photo page needs to list the verification requirements.

XCOM-254
2015-05-07 18:14:33 -04:00
Christine Lytwynec
e13d1858a8 skip test that are causing incorrect pep8 reports in jenkins builds 2015-05-07 14:18:26 -04:00
Christine Lytwynec
2817ce1473 Merge pull request #7913 from edx/clytwynec/unique-dirs-for-test-results
Clytwynec/unique dirs for test results
2015-05-06 14:24:21 -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
Christine Lytwynec
590a64bed1 resolve path differences with coverage combine using a coveragerc file specifically for jenkins
Conflicts:
	scripts/jenkins-report.sh
2015-05-06 11:31:50 -04:00
Christine Lytwynec
41a9e027f0 Revert "Revert "Clytwynec/unique dirs for test results""
This reverts commit 52c4aacad5.
2015-05-04 15:26:11 -04:00
Ned Batchelder
24e0c2c80f Run pylint on all our code, and only our code. TE-855
With the old logic, we weren't running pylint on openedx at all.  We
were also running it on lms/lib/comment_client twice, and on the
installed xblock third-party library.
2015-05-04 15:23:55 -04:00
Christine Lytwynec
52c4aacad5 Revert "Clytwynec/unique dirs for test results" 2015-05-04 10:58:25 -04:00
Christine Lytwynec
4f5aeb3f49 Merge pull request #7709 from edx/clytwynec/unique-dirs-for-test-results
Clytwynec/unique dirs for test results
2015-05-04 08:55:38 -04:00
Ned Batchelder
72c0991005 Don't delete *.pyc fils in the .git directory
If you have a branch named "remove-all-.pyc", the original code would
clobber it inside the .git directory, because branches become files with
the same name.  This prevents find from looking in .git, saving your
precious oddly named branches.
2015-04-30 18:17:17 -04:00
Christine Lytwynec
a78743acfb rename string formatting variable 2015-04-29 14:12:55 -04:00
Christine Lytwynec
9b8062020b set unique dirs for test reports 2015-04-28 14:59:35 -04:00
Jim Abramson
b5f58ccfcf Merge pull request #7781 from edx/jsa/bokchoy-firefox-instrux
tweak firefox upgrade instructions
2015-04-26 15:31:01 -04:00
Sarina Canelake
da036307a0 Update translations (autogenerated message) 2015-04-24 15:15:16 -04:00
Jim Abramson
5e9d469a9a tweak firefox upgrade instructions 2015-04-22 13:35:25 -04:00
David Baumgold
daf8320763 Remove extra spaces from paver commands 2015-04-22 12:17:43 -04:00
David Baumgold
8524677992 Update paver tests to ignore trailing whitespace 2015-04-22 10:03:39 -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
Feanil Patel
b0dbe2f2da Be more specific about where we compile sass from.
There are now folders under static that have sass that should not be compiled
as a part of our asset pipeline,  they were getting pulled in because the wildcard
for `SASS_UPDATE_DIRS` was too broad.  This update makes it more specific for most
folders but leaves it broad for the common folder where the xmodule has its own sass
that needs compiling from a non-standard location.
2015-04-15 17:27:17 -04:00
Jesse Zoldak
e5132e3f74 Remove unused paver option ptests 2015-04-08 11:57:02 -04:00
louyihua
faafda086d Add i18n_fastgenerate
So the time-consuming i18n_extract step can be skipped for situations that only the translated strings are modified while the source strings are still the same.
2015-04-05 18:59:43 +08:00
Ned Batchelder
6401f453ca Change how conf/locale/eo is cleaned up, so that it always happens 2015-03-24 11:18:45 -04:00
Sarina Canelake
e77211b713 Run pep8 on all files, and fix uncovered errors 2015-03-23 15:50:29 -04:00
Sarina Canelake
bd090a6e58 Fix paver quality tests to reflect removed diff-quality call 2015-03-23 15:37:56 -04:00
Sarina Canelake
a51fbc8123 Refactor pep8 to run instead of diff-quality pep8 2015-03-23 11:01:32 -04:00
Sarina Canelake
1b65afdd04 Give run_pep8 more readable output
Jenkins "Quality Report" pep8 output now lists all pep8 violations,
not just the number of violations.
2015-03-23 11:01:32 -04:00
Christine Lytwynec
659e90ea95 pass opts From PythonTestSuite to NoseTestSuite 2015-03-16 11:13:31 -04:00
Ben Patterson
1d00508671 Merge pull request #7147 from edx/benp/static-code-analysis-radon
Benp/static code analysis radon
2015-03-05 06:48:25 -05:00
Christine Lytwynec
8919d3f8f7 Store count of pep8 and pylint violations to files in reports dir 2015-03-03 10:47:22 -05:00
Ben Patterson
ff2dd93405 Simplify reporting and execution of pep8.
We are not using the limit flag in the actual run_pep8 method; removing
that from scripts. Operationally, pep8 has been enforcing a limit of
zero for awhile; this finishes that realization.

Also, all pep8 reports now appear under the reports/pep8 folder, rather than
per-system.
2015-03-02 13:21:35 -05:00
Ben Patterson
7a2384cfd1 Make pep8 failure output easier to understand. 2015-03-02 13:14:23 -05:00
Ben Patterson
efbabdb7bb Revert "Extend quality checks to cover more directories"
This reverts commit 19c767eb52.
2015-03-02 11:20:53 -05:00
Ben Patterson
9c04df5c7e Revert "Refactor quality checks"
This reverts commit 747756a911.
2015-03-02 10:30:21 -05:00
stv
747756a911 Refactor quality checks 2015-02-27 11:49:48 -08:00
stv
cdf7876a0e Fix PEP8: W293 blank line contains whitespace 2015-02-27 10:04:52 -08:00