Skip to content
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

Per directory stats? #108

Open
dothebart opened this issue Dec 2, 2020 · 3 comments
Open

Per directory stats? #108

dothebart opened this issue Dec 2, 2020 · 3 comments

Comments

@dothebart
Copy link

I see that show can print out per file summary. I'd need this per directory - is there already a way to do this?

@aconrad
Copy link
Owner

aconrad commented Dec 2, 2020

Hi @dothebart, pycobertura treats all file paths as strings, so it's currently agnostic of what a file vs. a directory is.

Are you using pycobertura from the command line or as a library?

@dothebart
Copy link
Author

I've did first experiments with the CLI.
I'm thinking about copying the class TextReporter(Reporter): , keep the stats on the object, and print them out once the path component of filename changes?

@aconrad
Copy link
Owner

aconrad commented Dec 3, 2020

Wondering if Cobertura.files() could take a keyword argument to allow it to list only a subset of files from the report that would match a given pattern. 🤔

Cobertura.files(match="*.py")

# or

Cobertura.files(match="foo/bar/*")

Dunno, food for thought. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants