test: add initial unit tests and code coverage support#283
Merged
Conversation
Totktonada
reviewed
Mar 30, 2021
Totktonada
reviewed
Mar 30, 2021
Totktonada
reviewed
Mar 30, 2021
Totktonada
reviewed
Mar 30, 2021
Totktonada
reviewed
Mar 30, 2021
Totktonada
reviewed
Mar 30, 2021
6597c67 to
7e1ed3d
Compare
Member
Author
|
rebased to master |
Totktonada
reviewed
Apr 2, 2021
Totktonada
reviewed
Apr 2, 2021
651f9b2 to
9087358
Compare
Totktonada
reviewed
Apr 29, 2021
Totktonada
reviewed
Apr 29, 2021
Totktonada
reviewed
Apr 29, 2021
Totktonada
reviewed
Apr 29, 2021
Totktonada
reviewed
Apr 29, 2021
d9e3881 to
75892f0
Compare
75892f0 to
63c0c5f
Compare
308ea40 to
34ca4be
Compare
8d084f0 to
815e0f4
Compare
Totktonada
reviewed
May 24, 2021
Totktonada
reviewed
May 24, 2021
3ba7910 to
28cd898
Compare
Patch introduces integration with coverage.py module [1] that allows to gather code coverage and build a simple report about covered statements and branches. We have a test-run.py module itself and also we have Python helpers for Tarantool tests written in Python. These Python tests runs a separate processes using subprocess module. To make it possible to gather code coverage for a separate processes option 'concurrency' added to .coveragerc. Additionally patch introduces integration with Coveralls service using python-coveralls module [2] that allows to evaluate incremental code coverage changes like we do it for Tarantool [3]. Code coverage for test-run is available on a public page by URL [4]. Name Stmts Miss Branch BrPart Cover ----------------------------------------------------------------- dispatcher.py 281 50 94 12 78.1% lib/__init__.py 45 0 6 1 98.0% lib/admin_connection.py 71 9 22 7 82.8% lib/app_server.py 162 45 38 11 67.0% lib/box_connection.py 54 22 12 1 50.0% lib/colorer.py 111 28 42 6 68.6% lib/connpool.py 85 54 18 1 35.0% lib/inspector.py 81 13 26 4 80.4% lib/options.py 81 15 18 6 78.8% lib/preprocessor.py 329 162 162 40 44.6% lib/pytap13.py 128 48 58 18 55.9% lib/server.py 111 23 40 12 74.2% lib/server_mixins.py 126 83 28 0 27.9% lib/tarantool_connection.py 126 28 22 5 75.0% lib/tarantool_server.py 729 237 268 65 61.5% lib/test.py 249 111 86 17 48.1% lib/test_suite.py 191 35 68 19 77.6% lib/unittest_server.py 63 6 10 4 86.3% lib/utils.py 216 76 86 19 59.9% lib/worker.py 251 81 70 15 60.7% listeners.py 205 78 70 6 60.0% test-run.py 149 76 44 9 42.5% ----------------------------------------------------------------- TOTAL 3844 1280 1288 278 61.2% 1. https://coverage.readthedocs.io/en/latest/config.html 2. https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support 3. https://coveralls.io/github/tarantool/tarantool 4. https://coveralls.io/github/tarantool/test-run
28cd898 to
394472d
Compare
Totktonada
approved these changes
May 25, 2021
Contributor
Totktonada
left a comment
There was a problem hiding this comment.
LGTM. I have no objections anymore.
I'll look again just in case and push.
Totktonada
added a commit
to tarantool/tarantool
that referenced
this pull request
May 28, 2021
There are several updates in test-run: * Unit testing and coverage collecting for test-run ([1]). (Plus a fixup for `--disable-schema-upgrade` for Python 3.5.) * Allow to miss a timeout in test_run:wait_log(): it is 60 seconds by default ([2]). * pretest_clean: add built-in `UUID()` SQL function ([3]). [1]: tarantool/test-run#283 [2]: tarantool/test-run#306 [3]: tarantool/test-run#307
Totktonada
added a commit
to tarantool/tarantool
that referenced
this pull request
May 28, 2021
There are several updates in test-run: * Unit testing and coverage collecting for test-run ([1]). (Plus a fixup for `--disable-schema-upgrade` for Python 3.5.) * Allow to miss a timeout in test_run:wait_log(): it is 60 seconds by default ([2]). * pretest_clean: add built-in `UUID()` SQL function ([3]). [1]: tarantool/test-run#283 [2]: tarantool/test-run#306 [3]: tarantool/test-run#307 (cherry picked from commit 0f44ede)
Totktonada
added a commit
to tarantool/tarantool
that referenced
this pull request
May 28, 2021
There are several updates in test-run: * Unit testing and coverage collecting for test-run ([1]). (Plus a fixup for `--disable-schema-upgrade` for Python 3.5.) * Allow to miss a timeout in test_run:wait_log(): it is 60 seconds by default ([2]). * pretest_clean: add built-in `UUID()` SQL function ([3]). [1]: tarantool/test-run#283 [2]: tarantool/test-run#306 [3]: tarantool/test-run#307 (cherry picked from commit 0f44ede)
Totktonada
added a commit
to tarantool/tarantool
that referenced
this pull request
May 28, 2021
There are several updates in test-run: * Unit testing and coverage collecting for test-run ([1]). (Plus a fixup for `--disable-schema-upgrade` for Python 3.5.) * Allow to miss a timeout in test_run:wait_log(): it is 60 seconds by default ([2]). * pretest_clean: add built-in `UUID()` SQL function ([3]). [1]: tarantool/test-run#283 [2]: tarantool/test-run#306 [3]: tarantool/test-run#307 (cherry picked from commit 0f44ede)
Contributor
|
Does not matter much here, but anyway: Updated the test-run submodule in tarantool in the following commits: 2.9.0-45-g0f44ede23, 2.8.1-23-g1b632d36c, 2.7.2-18-g9221e0e28, 1.10.10-10-gbc8463d67. |
avtikhon
pushed a commit
to avtikhon/tarantool
that referenced
this pull request
Jun 1, 2021
There are several updates in test-run: * Unit testing and coverage collecting for test-run ([1]). (Plus a fixup for `--disable-schema-upgrade` for Python 3.5.) * Allow to miss a timeout in test_run:wait_log(): it is 60 seconds by default ([2]). * pretest_clean: add built-in `UUID()` SQL function ([3]). [1]: tarantool/test-run#283 [2]: tarantool/test-run#306 [3]: tarantool/test-run#307
avtikhon
pushed a commit
to avtikhon/tarantool
that referenced
this pull request
Jun 1, 2021
There are several updates in test-run: * Unit testing and coverage collecting for test-run ([1]). (Plus a fixup for `--disable-schema-upgrade` for Python 3.5.) * Allow to miss a timeout in test_run:wait_log(): it is 60 seconds by default ([2]). * pretest_clean: add built-in `UUID()` SQL function ([3]). [1]: tarantool/test-run#283 [2]: tarantool/test-run#306 [3]: tarantool/test-run#307
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.