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

exclude_paths doesn't do what you expect #189

Open
boxed opened this issue Nov 23, 2020 · 1 comment
Open

exclude_paths doesn't do what you expect #189

boxed opened this issue Nov 23, 2020 · 1 comment

Comments

@boxed
Copy link
Owner

boxed commented Nov 23, 2020

https://github.com/henrikh/mutmut-exclude-path for a reproduction scenario.

Basically paths_to_exclude=some/folder/ should be understood correctly.

@M3ssman
Copy link

M3ssman commented Feb 14, 2021

@boxed
I guess this happens by the way traversing with os.walk is done.

If you comsume subdirs like in

def python_source_files(path, tests_dirs, paths_to_exclude=None):
you have only B , not main/B.

Give this a try:

[mutmut]
paths_to_mutate=main
paths_to_exclude=B
runner=python -m unittest discover tests --failfast

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