-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ Is3418/validation with ooil test my/osparc/service
#3479
✨ Is3418/validation with ooil test my/osparc/service
#3479
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3479 +/- ##
========================================
+ Coverage 80.4% 81.2% +0.7%
========================================
Files 688 792 +104
Lines 28765 33484 +4719
Branches 420 744 +324
========================================
+ Hits 23150 27206 +4056
- Misses 5514 6100 +586
- Partials 101 178 +77
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e28123e
to
a824c0a
Compare
ooil test my/osparc/service
ooil test my/osparc/service
ooil test my/osparc/service
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.
So if I get that correctly, this is one more step to having an almost empty cookie cutter? pretty nice work!
not literally empty but yes, no more boilerplate around the actual service code. |
c5af2de
to
8d68f0f
Compare
8d68f0f
to
d53cee2
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Haven't check the details yet, but this looks great! Will need a tutorial/demo when it's finished.
What do these changes do?
An important drawback of the https://github.com/ITISFoundation/cookiecutter-osparc-service is the extensive python boilerplate used to validate (i.e. test) the user's service. This PR allows that validation to be run directly from
ooil version 1.0.3
executable. Since the latter is in a container, this new command suppresses the need of any boilerplate or python installation on the user's repository.ooil test my/osparc/service
pytest
to run a pre-defined testsuite inservice_integration/services/tests
service_integration/services/tests/conftest.py
)service_integration/services/tests
Dockerfile
:scripts/ooil.bash
to run executable in a containerRelated issue/s
How to test
$ cd packages/service-integration $ make build $ make inspect # or $ (DOCKER_REGISTRY=local; DOCKER_IMAGE_TAG=production; ./scripts/ooil.bash test --help) $ (DOCKER_REGISTRY=local; DOCKER_IMAGE_TAG=production; ./scripts/ooil.bash test folder/with/.osparc)
Checklist