MSTest fails to mention ignored tests
November 14, 2008
Leave a comment
The other day I was writing some unit tests for a project I was working on. At the time, these tests contained some credentials that I both didn’t want to check-in and also didn’t want to break the build at a later date if I ever changed my password.
The test looked like this:
[Test] public void TestLogIn() { var username = "j.wein"; var password = "123456"; var authenticated = Directory.Authenticate( username, password ); Assert.IsTrue( authenticated ); }
Jared Wein has been a software engineer working professionally on C#/C++ for over 2 years while pursuing a Masters in Computer Science from Michigan State University. He shares interests in test driven development, Python, software usability, sustainable development, urban planning, and a couple million other things.
Recent Comments