Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-api
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
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
AURA
engine-api
Commits
9e0aea7c
Commit
9e0aea7c
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
New test script.
parent
2bf65016
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
run.sh
+7
-1
7 additions, 1 deletion
run.sh
test-requirements.txt
+0
-1
0 additions, 1 deletion
test-requirements.txt
with
8 additions
and
3 deletions
README.md
+
1
−
1
View file @
9e0aea7c
...
...
@@ -47,7 +47,7 @@ http://localhost:8008/api/v1/openapi.json
To launch the integration tests, use tox:
```
sudo pip install tox
tox
./run.sh test
```
## Running with Docker
...
...
This diff is collapsed.
Click to expand it.
run.sh
+
7
−
1
View file @
9e0aea7c
...
...
@@ -10,6 +10,7 @@ docker="false"
#
# - api-dev
# - api
# - test
# - recreate-database
# - docker:recreate-database
...
...
@@ -18,7 +19,7 @@ docker="false"
# - docker:api
#
if
[[
$*
=
~ ^
(
api-dev|api
)
$
]]
;
then
if
[[
$*
=
~ ^
(
api-dev|api
|test
)
$
]]
;
then
mode
=
$1
fi
...
...
@@ -55,6 +56,11 @@ if [[ $docker == "false" ]]; then
gunicorn
-c
config/gunicorn.conf.py src.server:app
fi
if
[[
$mode
==
"test"
]]
;
then
echo
"Testing API Server"
tox
fi
### CAUTION: This deletes everything in your database ###
if
[[
$mode
==
"recreate-database"
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
test-requirements.txt
+
0
−
1
View file @
9e0aea7c
tox
==3.15.2
flask_testing
==0.8.0
coverage
>=5.1
nose
>=1.3.7
...
...
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