pavzaj / visualmutator

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

Can't find test data file #5

Open luobumm opened 6 years ago

luobumm commented 6 years ago

Running VisualMutator on VisualStudio2015. My MS test needs a json file as input, I uses MS Test 'Deploy' attribute to deploy the test data file to TestResult folder. While running VisualMutator, in the pre-check phase, an error message dialog pop showing message like 'Failed test message: System.IO.DirectoryNotFoundException: Could not find a part of the path C:\Users\luo\AppData\Local\Temp\VisualMutator-InitTestEnviroment-zp4ugfyp.wrh\TestData\MyTestInput.json'. Actually, I even can't find 'VisualMutator-InitTestEnviroment-zp4ugfyp.wrh' folder under the Temp directory. How can I fix this to enable VisualMutator keep working?

pavzaj commented 6 years ago

Hello. I've never used Mstest via visual murator. Did it work for you before? Maybe I'll be able to check it out by the end of this week.

On Nov 7, 2017 7:59 AM, "luobumm" notifications@github.com wrote:

Running VisualMutator on VisualStudio2015. My MS test needs a json file as input, I uses MS Test 'Deploy' attribute to deploy the test data file to TestResult folder. While running VisualMutator, in the pre-check phase, an error message dialog pop showing message like 'Failed test message: System.IO.DirectoryNotFoundException: Could not find a part of the path C:\Users\luo\AppData\Local\ Temp\VisualMutator-InitTestEnviroment-zp4ugfyp. wrh\TestData\MyTestInput.json'. Actually, I even can't find 'VisualMutator-InitTestEnviroment-zp4ugfyp.wrh' folder under the Temp directory. How can I fix this to enable VisualMutator keep working?

— 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/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AQbxC2G8_R2tOimKUr9msLnn3YVDXbd9ks5sz__lgaJpZM4QUV3H .

luobumm commented 6 years ago

Thanks for your reply. I tried on MS test for some simple test methods, VisualMutator works well. But for the data driven test, which needs input data file, VisualMutator always fail to find the file path and fail those tests. I am wondering is there any config file need to be edited with the file path for VisualMutator? I can't find any documentation about it. Another potential bug I met is, when projects are organized in folders in Visual studio 2015 solutions, VisualMutator only shows projects that in the top folders, other projects are missing. Appreciate your help.