what is coverage? (intermediate) anthony explains

  Рет қаралды 4,238

anthonywritescode

anthonywritescode

Күн бұрын

Пікірлер: 25
@mrswats
@mrswats 2 жыл бұрын
3:01 My favourite moment of the video
@michimussato
@michimussato Ай бұрын
kzbin.info/www/bejne/m4KwZIeFn9iAlbM: Do have an example for that, @anthonywritescode ?
@l4m5
@l4m5 2 жыл бұрын
please would you mind going over the extension part of coverage "ctracer/"
@anthonywritescode
@anthonywritescode 2 жыл бұрын
anything specific? as I said in the video it's basically a settrace handler
@mfeickert07
@mfeickert07 2 жыл бұрын
Do you have a "anthony explains" video about packaging monorepos? I thought you did, but when checking the explains repo I don't see anything from a quick ctrl+f. Some people in my org are moving from "one repo per micro service to a single repo with each service as a subdirectory" and are struggling a bit, so I was hoping to send them a video.
@anthonywritescode
@anthonywritescode 2 жыл бұрын
heh, I don't really like monorepos personally and haven't worked in a place where they went well -- I have a video about all-repos (was given as a talk) which is sorta the opposite (how I manage many-repos)
@mfeickert07
@mfeickert07 2 жыл бұрын
@@anthonywritescode Yeah I don't use monorepos either, for what I assume are similar reasons to you. But I figured as you've shown multiple ways of doing things on the channel before, some of them you warn in the video that you don't like or don't personally use, that I'd check if I had missed it somewhere. Thanks for verifying I didn't!
@jfk1337
@jfk1337 2 жыл бұрын
Hi anthony do you know about hatch from pypa? Is this an alternative to use for poetry?
@anthonywritescode
@anthonywritescode 2 жыл бұрын
I know it exists, but I don't know whether it's good or not because I have not tried it
@ilyalalala7655
@ilyalalala7655 2 ай бұрын
Hey great video! I actually have a Q: I have a project with python 3.9 and wanted to update it to 3.12 After I bump my version to 3.10 everything seems to be fine, but for 3.11 and 3.12 coverage is starting to decrease (95% with 3.11 and 92% with 3.12). What could be the origin of such weird behavior?
@anthonywritescode
@anthonywritescode 2 ай бұрын
impossible to know without seeing the code and what things are uncovered
@ilyalalala7655
@ilyalalala7655 Ай бұрын
Long story short: Along with updating python coverage also should be updated 😅
@yudhiesh1997
@yudhiesh1997 2 жыл бұрын
Do you know how to generate coverage reports for cookie cutter templates?
@anthonywritescode
@anthonywritescode 2 жыл бұрын
I'm not sure what you mean? are you testing a template or are you looking to template a way to get reports?
@yudhiesh1997
@yudhiesh1997 2 жыл бұрын
@@anthonywritescode oops sorry, I’m testing a template.
@anthonywritescode
@anthonywritescode 2 жыл бұрын
I'm not sure code coverage really applies there? it's just codegen right?
@bhaveshverma8629
@bhaveshverma8629 2 жыл бұрын
Woh nice one. I also learn even i am not from Python background
@amir.hessam
@amir.hessam 2 жыл бұрын
​ @anthonywritescode is there any specific reason not using `pytest-cov` plugin which is essentially using `coverage` in the back? just wondering your thoughts. I personally use it as `python -m pytest --cov=src --cov-report=term --cov-report=html --cov-report=xml --cov-config=.coveragerc --tb=short -ra -v` in one line
@anthonywritescode
@anthonywritescode 2 жыл бұрын
I've got another video recorded about why I don't use pytest-cov -- the tl;dr is it's fragile and you don't need it and doing everything "in one line" to me is a big minus rather than a plus
@lycantropos
@lycantropos 2 жыл бұрын
from my experience explicitly calling coverage (with all options available) is better than having it turned on implicitly on each test run, also tests debugging in my IDE-of-choice (PyCharm) didn't work well with `pytest-cov` some time ago, don't know about current state of things
@jhg12989
@jhg12989 2 жыл бұрын
@@anthonywritescode What's the other recorded video? Has it been released yet? ;()
@Aman26758
@Aman26758 2 жыл бұрын
You are simply awesome
@l4m5
@l4m5 2 жыл бұрын
exactly what i needed
@abhishekminz123
@abhishekminz123 2 жыл бұрын
Work it in Windows 11
@amir.hessam
@amir.hessam 2 жыл бұрын
First comment as always
don't make images of code / text!  (beginner)  -- anthony explains #481
2:32
anthonywritescode
Рет қаралды 3,9 М.
how do virtualenvs actually work (advanced) anthony explains #522
16:55
anthonywritescode
Рет қаралды 7 М.
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Is Functional Programming DEAD Already?
21:07
Continuous Delivery
Рет қаралды 77 М.
all string syntaxes (beginner) anthony explains #525
19:49
anthonywritescode
Рет қаралды 4,6 М.
Tips and tricks for reading unfamiliar code
24:30
Ants Are Everywhere
Рет қаралды 9 М.
oops I wasn't testing anything!? (all code sucks) #08
6:04
anthonywritescode
Рет қаралды 6 М.
Bash vs ZSH vs Fish: What's the Difference?
13:32
Eric Murphy
Рет қаралды 197 М.