Swift edition
Errors
When mutastic can’t run, it says why in one sentence, in your words, then where it looked, and last the command to run instead, with your values in it, on stderr. It exits 2, or 3 when your tests fail without any mutant. This page is the errors a mistake on the command line gives, so you can tell at a glance what to fix; Troubleshooting has the ones a project gives, and Xcode projects the ones only Xcode gives.
An option it doesn’t have
Section titled “An option it doesn’t have”A name that’s nearly an option’s gets the option it was close to, in the command you meant:
mutastic run samples/pricing --formt=agentmutastic: run has no option --formt. There's one called --format. mutastic run samples/pricing --format=agentA value an option doesn’t take
Section titled “A value an option doesn’t take”mutastic run samples/pricing --format=agntmutastic: --format has no value agnt. There's one called agent. mutastic run samples/pricing --format=agentAn id that isn’t a mutant
Section titled “An id that isn’t a mutant”A mutant’s id is m and eight hex digits. One that’s a slip away from a real one gets that one:
mutastic verify m86f9a31e samples/pricingmutastic: m86f9a31e isn't a mutant of pricing. There's one called m86f9a31d. mutastic verify m86f9a31d samples/pricingmutastic mutants lists every mutant’s id; a card, next and explain name the one they’re
about.
A directory that isn’t there
Section titled “A directory that isn’t there”A directory named that doesn’t exist, mistyped say, is said as you typed it, with where it was looked for. Then what to test instead, and the command on it: a directory beside it a slip away from its name, else the package it would be in:
mutastic run samples/pricing/nosuchmutastic: there's no directory samples/pricing/nosuch in /home/you/project.The package there is pricing, in samples/pricing. To test it: mutastic run samples/pricingA mistake in mutastic.yaml
Section titled “A mistake in mutastic.yaml”A name in mutastic.yaml mutastic doesn’t have is refused with the file’s line, and the one it was
close to. Here samples/pricing/mutastic.yaml holds operators:, - defaults and - -strem:
mutastic run samples/pricingmutastic: mutastic.yaml line 3: strem isn't an operator mutastic has. There's one called stream.It takes a set (defaults, stronger, extended or all), a namespace (library, mutastic, optional, stream or swift) or an operator's id. To see each id: mutastic mutants --operators=allA command it doesn’t have
Section titled “A command it doesn’t have”See a mistyped command.