Closed adgifs closed 2 months ago
Hello @adgifs 👋
That's a nice observation :)
Up until my latest commit d44e78d0faf1dd2a2ebde92b7a8159873ef39c97 muter was ignoring any files that contained the word test
in the path. So since you named your project MutationTestIntroduction
I think it ignores everything. After that commit it is fixed and should be working as expected. (Please read the README.md for more information on how muter exclude files)
At this moment the latest release version does not include that. So your only option is to manually clone the project at Master branch and install it.
@rakaramos Do you think we can release a new version just for that?
@Nikoloutsos I think I'll have more time in a few weeks to prepare for a new release 👍
@adgifs does muter build from the master branch fixes the issue for you?
I have created a new app project with SwiftUI and tried to run muter on it without success.
If relevant, I'm running it with the clone of the repository but I have tried homebrew and with no success either. Besides that, I'm running it with the following Xcode version:
Configuration:
My configuration file is the generated one and it isn't excluding anything. Running one of the apps in the repository does work unlike in mine. The same happened in other projects of mine that I have tried to run it. Curiously, if I use
muter --files-to-mutate MutationTestIntroduction/Extensions/IntExtension.swift
, it does pick up the file and runs successfully. What's the issue exactly here? Thank you in advance and happy holidays!Edit:
Curiously, if I test the
IntExtension.swift
withmuter --files-to-mutate MutationTestIntroduction/Extensions/IntExtension.swift
it fails, even though the unit test is solid. If I add that file to theExampleApp
, which I'm able to work with the commandmuter
alone, it tests and passes my test. In fact, every mutation test passes because of runtime error.I have tried to create yet another base project, now with a slightly different setup and, even though it is able to detect
IntExtension.swift
, the mutation survives, even though it should pass and it does pass when usingExampleApp
. I'm very confused... 🫠