Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
ExaCT
Rosetta
Commits
79b38d98
Commit
79b38d98
authored
4 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Bigfix in the test runner command.
parent
06d9fd2d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rosetta/test
+2
-2
2 additions, 2 deletions
rosetta/test
with
2 additions
and
2 deletions
rosetta/test
+
2
−
2
View file @
79b38d98
#!/bin/bash
# Example:
./run_webapp_unit_tests.sh
rosetta.core_app.tests.test_apis.ApiTests.test_api_web_auth
# Example:
rosetta/test
rosetta.core_app.tests.test_apis.ApiTests.test_api_web_auth
# You probably want to set DJANGO_LOG_LEVEL to ERROR and ROSETTA_LOG_LEVEL to DEBUG if you are doing tdd.
DJANGO_LOG_LEVEL
=
"CRITICAL"
...
...
@@ -10,4 +10,4 @@ ROSETTA_LOG_LEVEL="CRITICAL"
DJANGO_DB_ENGINE
=
"django.db.backends.sqlite3"
DJANGO_DB_NAME
=
":memory:"
rosetta/shell webapp
"export DJANGO_DB_ENGINE=
$DJANGO_DB_ENGINE
&& export DJANGO_DB_NAME=
$DJANGO_DB_NAME
&& cd /opt/
webapp_code && python3 manage.py makemigrations
&& DJANGO_LOG_LEVEL=
$DJANGO_LOG_LEVEL
ROSETTA_LOG_LEVEL=
$ROSETTA_LOG_LEVEL
python3 manage.py test
$@
"
rosetta/shell webapp
"export DJANGO_DB_ENGINE=
$DJANGO_DB_ENGINE
&& export DJANGO_DB_NAME=
$DJANGO_DB_NAME
&& cd /opt/
code
&& DJANGO_LOG_LEVEL=
$DJANGO_LOG_LEVEL
ROSETTA_LOG_LEVEL=
$ROSETTA_LOG_LEVEL
python3 manage.py test
$@
"
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