Increases toolchain.py test coverage#1933
Conversation
|
This is still in WIP, because for some reason the |
Increases `test_create()` coverage demonstrating crash referenced in: <kivy#1867 (comment)> Adds `test_recipes()` checking if it prints out without crashing.
30165e8 to
47b472b
Compare
|
I've fixed the test and we now have a +15.8% of coverage (to 53.148%), awesome. |
There was a problem hiding this comment.
in overall it seems to go into the right direction, but how much the one mock test has blown up worries me a little. it just seems to me like doing a sort of small integration-style test (I know I suggest this a lot 😂 but hear me out 😄 ) might end up more maintainable in the long run - but obviously just my opinion 🤷♀️
but after some thinking that does seem unavoidable given how central this function is and how long it'd otherwise run, so well done 👍 I still want to test it though before approving it, hang on
ghost
left a comment
There was a problem hiding this comment.
the tests ran through locally on my pc fine. they look like a neat addition! apart from that one formatting comment (and the misguided resolved others, ignore those 😂 ) I have nothing else to suggest 🙂 👍
|
Thanks for the quick review @Jonast. Yes I do agree with your strike-through comment regarding the integration test. It's indeed far from being a strickly unit test indeed, but it was easy enough to write it that way while also helping raising issues, increasing coverage and not introducing any kind of lag/flakkness in our testing, so it feel good enough for now |
|
@opacam I'm merging it prior your review, but I'll keep an eye on your post merge comments if you have any so I can address on subsequent PRs |
| conflicts: ['python2'] | ||
| optional depends: ['sqlite3', 'libffi', 'openssl'] | ||
| ``` | ||
| """ |
There was a problem hiding this comment.
minor: I'm not sure how it will be rendered this docstring in sphinx...maybe I would use a code-block directive, something like:
Prints recipes basic info, e.g.
.. code-block:: bash
python3 3.7.1
depends: ['hostpython3', 'sqlite3', 'openssl', 'libffi']
conflicts: ['python2']
optional depends: ['sqlite3', 'libffi', 'openssl']
But, @AndreMiras, don't need to change this, if I remember well, I think that we don't have enabled the build of technical documentation, so it wont be visible for now.
Apart from this, I would like to mention that overall it looks good, clean and very readable.Also, I made tox test on my machine, with current develop branch , since it's already merged, without any issue.
@AndreMiras, thanks for this PR, good job, as usual 👍
and @Jonast, thanks for your review, I was out for the weekend and I was unable to take care of the review, so yours sped up the merging 😄
There was a problem hiding this comment.
I don't know how I missed that comment. I'd be happy to address it still.
Edit: covered as part of #1948
This context manager will makes it possible to rollback an object state after leaving the context manager. This is a follow up of <kivy#1867 (comment)> Also address docstring format as suggested by @opacam in <kivy#1933 (comment)>
This context manager will makes it possible to rollback an object state after leaving the context manager. This is a follow up of <kivy#1867 (comment)> Also address docstring format as suggested by @opacam in <kivy#1933 (comment)>
This context manager will makes it possible to rollback an object state after leaving the context manager. This is a follow up of <kivy#1867 (comment)> Also address docstring format as suggested by @opacam in <kivy#1933 (comment)>
Increases
test_create()coverage demonstrating crash referenced in:#1867 (comment)
Adds
test_recipes()checking if it prints out without crashing.