muter-mutation-testing / muter

🔎 Automated mutation testing for Swift 🕳️
MIT License
496 stars 39 forks source link

Could not parse buildRequest.json from build description path #266

Closed timp1283 closed 7 months ago

timp1283 commented 8 months ago

Hello everyone! I have decided to give Muter a try but I'm struggling with getting it to work in my project.

Log:

Analyzing source files to find mutants which can be inserted into your project...
In total, Muter discovered 16 mutants in 1 files

GatekeeperViewModel.swift (16 mutants)
⚠️ ⚠️ ⚠️ ⚠️ ⚠️  Muter has encountered an error  ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
Could not parse buildRequest.json from build description path

⚠️ ⚠️ ⚠️ ⚠️ ⚠️  See the Muter error log above this line  ⚠️ ⚠️ ⚠️ ⚠️ ⚠️

Configuration:

arguments:
- -scheme
- iosAppTests
- -destination
- platform=iOS Simulator,name=iPhone SE (3rd generation)
- test
executable: /usr/bin/xcodebuild
exclude:
- App/Packages/Pocketknife/Package.swift
- App/Packages/BarcodeReader/Package.swift
excludeCalls: []

I have read another issue with the same problem but unfortunately it doesn't seem to be the problem as I have excluded the Package.swift files. I'm perfectly able to build/test the mutated project through both Xcode and xcodebuild -scheme iosAppTests -destination "platform=iOS Simulator,OS=17.0.1,name=iPhone 15" test. I have checked and the "Build Products Path" exists in the configuration. Could it be because of Kotlin Multiplatform Mobile in the mix? Thanks and have a great year :)

rakaramos commented 7 months ago

we changed how Muter finds the build info from projects, please test using the version from master. feel free to reopen in case it still fails