unit testing - Running NUnit tests with Gallio -
i'm trying write nunit tests project. add new class library solution. correct project type?
i added reference:
using nunitframework; and added tests.
i have gallio installed, i'm unsure whether it's configured properly. i'm new using this, , i'm hoping can tell me how run tests.
it understanding right click , select run tests. alternatively thought click on [test] attribute , click run or debug.
alternatively, how load tests test results window run debug them?
basically it's correct. unit test should this:
using system; using nunit.framework; namespace demo { [testfixture] public class sampletestfixture { [test] public void sampletest() { // test here... } } } compile test project (a class library ok) in debug mode. can run test suite within runner supports nunit:
- any gallio test runner (echo, posh snap-in, icarus, etc.) there nice tutorial explaining how use gallio test runners here. examples use mbunit instead of nunit, it's same.
- the built-in nunit gui or console runner.
- the built-in vs test runner (interfaced gallio) if version of visual studio includes ms testing tools. should able see tests in test tool window, there nasty trick make vs recognize project test project if did not create such.
- you can use testdriven.net lightweight , fast test runner comes add-in vs. imho, it's simple , efficient way run unit tests directly vs ide.
Comments
Post a Comment