-
Notifications
You must be signed in to change notification settings - Fork 118
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
copy full src dir before creating mutants #372
Conversation
current process only copies python files
@@ -257,10 +261,6 @@ def pragma_no_mutate_lines(source): | |||
def create_mutants_for_file(filename, output_path): | |||
input_stat = os.stat(filename) | |||
|
|||
if output_path.exists() and output_path.stat().st_mtime == input_stat.st_mtime: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this deletion? This PR should be about just copying the file tree as the title says.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I explained it in a previous comment but if that code is there it doesn't create the mutants because output_path.stat().st_mtime == input_stat.st_mtime
will be true so either this logic needs to be modified or it removed for it to work with the shutil.copytree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. My bad.
Thanks! |
The current process only copies python files but tests might rely on other files that exist within the src directories in a repo. This PR copies the full src directories first, creates and overwrites the files with the mutants and then copies the files specified in
also_copy
fixes #371