pavzaj / visualmutator

Mutation testing tool for Visual Studio
GNU General Public License v2.0
10 stars 6 forks source link

VisualMutator.Console Invalid params string options #8

Open fraclipe opened 5 years ago

fraclipe commented 5 years ago

Hi all,

I am not sure if it's a bug or not as far as I have not found any usage example. Sorry if here it is not the right place to put that issue. The problem is that I am not able to run VisualMutator.Console because it always complains with "Invalid params string in options". This is how I am trying to launch it:

VisualMutator.Console.exe -sourceAssemblies D:\source-code-completed\TestNinja -testAssemblies CustomerControllerTests -resultsXml D:\source-code-completed\myResults.xml

An this is the error reported: Unhandled Exception: System.Exception: Invalid params string in options.: System.String[] at VisualMutator.Console.CommandLineParser.ParseFrom(String[] args) in C:\PLIKI\VisualMutator\VisualMutator\VisualMutator.Console\CommandLineParser.cs:line 18 at VisualMutator.Console.Program.Main(String[] args) in C:\PLIKI\VisualMutator\VisualMutator\VisualMutator.Console\Program.cs:line 77

Anyone has any clue about how to solve it? Thanks in advance

pavzaj commented 5 years ago

From what I know, console version is not working at all. Gui version works in some cases...

On 09:11, Tue, Sep 4, 2018 fraclipe notifications@github.com wrote:

Hi all,

I am not sure if it's a bug or not as far as I have not found any usage example. Sorry if here it is not the right place to put that issue. The problem is that I am not able to run VisualMutator.Console because it always complains with "Invalid params string in options". This is how I am trying to launch it:

VisualMutator.Console.exe -sourceAssemblies D:\source-code-completed\TestNinja -testAssemblies CustomerControllerTests -resultsXml D:\source-code-completed\myResults.xml

An this is the error reported: Unhandled Exception: System.Exception: Invalid params string in options.: System.String[] at VisualMutator.Console.CommandLineParser.ParseFrom(String[] args) in C:\PLIKI\VisualMutator\VisualMutator\VisualMutator.Console\CommandLineParser.cs:line 18 at VisualMutator.Console.Program.Main(String[] args) in C:\PLIKI\VisualMutator\VisualMutator\VisualMutator.Console\Program.cs:line 77

Anyone has any clue about how to solve it? Thanks in advance

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pavzaj/visualmutator/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AQbxC842K9sltGaBZQ6vtgQDJ-YOo5heks5uXie8gaJpZM4WYagT .

fraclipe commented 5 years ago

Thanks for the information pavzaj!

As soon as I'll have some time I will try to understand how the Console code should work in order to try to made the needed changes. In case of success I will report them. I really think is a desirable feature, because could enable the tool to be used in an automated CI/CT environment, like Jenkins for example.

Regarding the GUI version, I have tried the "Save Results..." button/option, and it generates the xml file ONLY when "Include detailed test results for each mutant" and "Include code difference listings for each mutant" are not selected. I think it is important to be able to generate that file at least with the last option selected. Any clues on how to solve that?

Thank you pavzaj for your great work! I am currently using the GUI tool in VS 2017 without any other problems.