-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Django test runner reporting plugin #693
Comments
May I please get assigned this? |
Go ahead please. As soon as you have something ready for review please post a link to your repository here and I will review it. |
@brymut I see in your profile that you are from Kenya. You may also help us with the Swahili translation if you want, see issues. |
I’ll look into those too, no problem |
Hi again @atodorov, took longer than expected but I think I've got something can be looked at for some initial feedback on tcms-django-plugin. Still working on adding to testing, the README and compatibility with subtests later on today, however, any feedback would be appreciated on the current progress if you've got some time to spare. Also working on the translations today too. |
I will review & comment/open issues directly at https://github.com/brymut/tcms-django-plugin |
@brymut I have released the plugin on PyPI https://pypi.org/project/kiwitcms-django-plugin/ and I consider it ready for consumption. In order to close this PR and claim the bounty please update the relevant documentation section and close this issue via commit log message. |
Kiwi TCMS needs a customized test runner for Django based projects. This runner will execute the Django test suite as normal and then report the results into Kiwi TCMS database via our API.
Getting started docs
How Django test discovery & execution works
The test runner can be controlled with the
TEST_RUNNER
setting, which by default points todjango.test.runner.DiscoverRunner
class../manage.py test
will initialize the test runner class and execute.run_tests()
method which does the heavy lifting of setting up the test environment and executing the test suite. At the end it calls.suite_result()
with the results..suite_result()
and possibly.run_tests()
look like possible methods to override and perform the reporting of results to Kiwi TCMS. For inspiration see https://github.com/kiwitcms/tap-plugin and https://github.com/kiwitcms/junit.xml-pluginDefinition of done
tcms_django_plugin.TestRunner
which inherits fromDiscoverRunner
and overrides methods to compile information of what has been tested and what the results weretcms_api.plugin_helpers.Backend
which encapsulates the communication and behavior logic around the TCMS DB, see referenced plugins aboveNote: comment on this issue with a link to your repository as soon as you have something working!
This issue is part of Kiwi TCMS open source bounty program. For more information see the link(s) in bounty-program milestone
The text was updated successfully, but these errors were encountered: