Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
djangoldp-packages
djangoldp
Commits
9facf187
Commit
9facf187
authored
4 years ago
by
Calum Mackervoy
Committed by
Jean-Baptiste
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update: performance tests separated into their own runner
parent
a11164b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!161
Performance
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
djangoldp/tests/performance_runner.py
+22
-0
22 additions, 0 deletions
djangoldp/tests/performance_runner.py
djangoldp/tests/runner.py
+1
-1
1 addition, 1 deletion
djangoldp/tests/runner.py
with
23 additions
and
1 deletion
djangoldp/tests/performance_runner.py
0 → 100644
+
22
−
0
View file @
9facf187
import
sys
import
django
from
djangoldp.tests
import
settings_default
from
django.conf
import
settings
# configure settings not to use pagination
settings
.
configure
(
default_settings
=
settings_default
,
REST_FRAMEWORK
=
{
'
DEFAULT_PAGINATION_CLASS
'
:
None
})
django
.
setup
()
from
django.test.runner
import
DiscoverRunner
test_runner
=
DiscoverRunner
(
verbosity
=
1
)
failures
=
test_runner
.
run_tests
([
'
djangoldp.tests.tests_performance
'
,
])
if
failures
:
sys
.
exit
(
failures
)
This diff is collapsed.
Click to expand it.
djangoldp/tests/runner.py
+
1
−
1
View file @
9facf187
...
@@ -25,7 +25,7 @@ failures = test_runner.run_tests([
...
@@ -25,7 +25,7 @@ failures = test_runner.run_tests([
'
djangoldp.tests.tests_pagination
'
,
'
djangoldp.tests.tests_pagination
'
,
'
djangoldp.tests.tests_inbox
'
,
'
djangoldp.tests.tests_inbox
'
,
'
djangoldp.tests.tests_backlinks_service
'
,
'
djangoldp.tests.tests_backlinks_service
'
,
#
'djangoldp.tests.tests_temp'
#'djangoldp.tests.tests_temp'
])
])
if
failures
:
if
failures
:
sys
.
exit
(
failures
)
sys
.
exit
(
failures
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment