Mstest App.config

Mstest App.config

Hi,

I'm using Ncover with mstest and I have a problem. Untill my application doesn't use an app.config file ncover work fine. Now I have add a config file and with visual studio my tests run but with ncover failed.

I suppose that the Ncover didn't find my configuration.

Can you help me?

Thanks in advance,

regards,


RE: Mstest App.config

Does it work without using NCover? We don't control how the app.config is loaded. It must be named the same as the assembly assemblyname.dll.config. app.config will not be picked up.

Joe


RE: Mstest App.config

Yes it works without ncover and the naming convention is assembly.dll.config.

Do you have any idea?

Thanks for your reply,

regards,

Nicolas


RE: Mstest App.config

do the tests fail or does ncover throw an exception? what is the actual error caused?


RE: Mstest App.config

The tests fail because it doesn't find any key in my config file.

Regards,

Nicolas


RE: Mstest App.config

Nick,

Can you send an email to support so we can start an actual case?

We tried this with NUnit and it works. I will see if Stephen tried it with mstest in the morning.

Joe Feser


RE: Mstest App.config

Hi,

I have done following but the problem is not resolved.

Regards,


RE: Mstest App.config

Are you using the noisolation flag for mstest? If you are it will not work with an app.config file.

Did you get any response back from support. I don't remember seeing your support request.

Joe Feser


RE: Mstest App.config

Hi,

I have received some feedback but I already have the problem.

Thanks,

Regards,