Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a7995df6
Commit
a7995df6
authored
May 14, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the django-nose test runner, for the coverage features
parent
f0c07b28
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
+40
-0
envs/test.py
+9
-0
requirements.txt
+0
-0
test-requirements.txt
+3
-0
test_data/course_settings.py
+28
-0
No files found.
envs/test.py
View file @
a7995df6
...
@@ -8,6 +8,7 @@ sessions. Assumes structure:
...
@@ -8,6 +8,7 @@ sessions. Assumes structure:
/log # Where we're going to write log files
/log # Where we're going to write log files
"""
"""
from
common
import
*
from
common
import
*
import
os
INSTALLED_APPS
=
[
INSTALLED_APPS
=
[
app
app
...
@@ -16,6 +17,14 @@ INSTALLED_APPS = [
...
@@ -16,6 +17,14 @@ INSTALLED_APPS = [
if
not
app
.
startswith
(
'askbot'
)
if
not
app
.
startswith
(
'askbot'
)
]
]
# Nose Test Runner
INSTALLED_APPS
+=
[
'django_nose'
]
NOSE_ARGS
=
[
'--cover-erase'
,
'--with-xunit'
,
'--with-xcoverage'
,
'--cover-html'
,
'--cover-inclusive'
]
for
app
in
os
.
listdir
(
PROJECT_ROOT
/
'djangoapps'
):
NOSE_ARGS
+=
[
'--cover-package'
,
app
]
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
# Local Directories
COURSES_ROOT
=
PROJECT_ROOT
/
"test_data"
COURSES_ROOT
=
PROJECT_ROOT
/
"test_data"
DATA_DIR
=
COURSES_ROOT
DATA_DIR
=
COURSES_ROOT
MAKO_TEMPLATES
[
'course'
]
=
[
DATA_DIR
]
MAKO_TEMPLATES
[
'course'
]
=
[
DATA_DIR
]
...
...
requirements.txt
View file @
a7995df6
test-requirements.txt
0 → 100644
View file @
a7995df6
django-nose
coverage
nosexcover
test_data/course_settings.py
0 → 100644
View file @
a7995df6
GRADER
=
[
{
'type'
:
"Homework"
,
'min_count'
:
12
,
'drop_count'
:
2
,
'short_label'
:
"HW"
,
'weight'
:
0.15
,
},
{
'type'
:
"Lab"
,
'min_count'
:
12
,
'drop_count'
:
2
,
'category'
:
"Labs"
,
'weight'
:
0.15
},
{
'type'
:
"Midterm"
,
'name'
:
"Midterm Exam"
,
'short_label'
:
"Midterm"
,
'weight'
:
0.3
,
},
{
'type'
:
"Final"
,
'name'
:
"Final Exam"
,
'short_label'
:
"Final"
,
'weight'
:
0.4
,
}
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment