-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Move nose arguments around so that we can run tests with manage.py #1117
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,8 @@ | |
| from path import path | ||
| from warnings import filterwarnings | ||
|
|
||
| os.environ['DJANGO_LIVE_TEST_SERVER_ADDRESS'] = 'localhost:8000-9000' | ||
|
|
||
| # can't test start dates with this True, but on the other hand, | ||
| # can test everything else :) | ||
| MITX_FEATURES['DISABLE_START_DATES'] = True | ||
|
|
@@ -43,6 +45,17 @@ | |
| # Nose Test Runner | ||
| TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' | ||
|
|
||
| _system = 'lms' | ||
|
|
||
| _report_dir = REPO_ROOT / 'reports' / _system | ||
| _report_dir.makedirs_p() | ||
|
|
||
| NOSE_ARGS = [ | ||
| '--tests', PROJECT_ROOT / 'djangoapps', COMMON_ROOT / 'djangoapps', | ||
| '--id-file', REPO_ROOT / '.testids' / _system / 'noseids', | ||
| '--xunit-file', _report_dir / 'nosetests.xml', | ||
| ] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The old code set
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| # Local Directories | ||
| TEST_ROOT = path("test_root") | ||
| # Want static files in the same dir for running on jenkins. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we test 'lms/djangoapps', why not just 'lms' ? There are no tests in lms outside of lms/djangoapps, but there is code outside of djangoapps, shouldn't we be prepared for it to grow tests one day?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No real reason, initially, but upon trying it out w/o, it turns out it doesn't work. And the reason it doesn't is that
djangoappsdoesn't have an__init__.py.