Showing posts with label Cool Tools. Show all posts
Showing posts with label Cool Tools. Show all posts

Tuesday, May 6, 2008

Ivonna lets you write ASP.NET Unit Tests

Looking for a way to write unit and integration style tests against ASP.NET Pages and WebForms? Ivonna is a new project that aims to give an alternative to things you'd usually do in stuff like Watin or Watir or NUnitASP, using the help of Typemock underneath to isolate the WebForms runtime from the real HTTP context:

"Ivonna is an Asp.Net testing tool that allows writing unit tests for your WebForms applications. What makes it different is that Ivonna runs in the same process as the test runner.
Unlike other testing tools, Ivonna is not a "client-side" tool. It doesn't just test the HTML output (although such a possibility exists), it creates and runs an Asp.Net request and allows you to examine the intrinsic objects, such as the Page object. This opens many new possibilities, such as

  • Examining properties of page controls and other objects, such as the HttpContext object.
  • Mocking external dependencies in order to isolate the page behavior.
  • Injecting setup code and assertions into the page's lifecycle event handlers.

Ivonna is being developed in partnership with TypeMock and runs as an add-on to the TypeMock Isolator framework.

Tuesday, March 25, 2008

MbUnit "Gallio" announces built in support for Typemock Isolator

Jeff Brown Just posted about the current alpha version of MbUnit (Gallio codename) with cool new features. I urge you to take a look at it here.

Cool thing about it: Built in integration for Typemock and NCover runners:

"This is all it takes to run your tests with NCover or TypeMock using MSBuild:

<Gallio Assemblies="MyAssembly.dll" RunnerType="NCover" />
<Gallio Assemblies="MyAssembly.dll" RunnerType="TypeMock" />

The trick is that the tests will run in an isolated host process with the profiler attached.  You can of course plug in your own runners too.  You can of course pass the same arguments to the NAnt task, PowerShell task and the command-line runner (Echo).

Magic. "

Coolness. Great job.

Thursday, February 21, 2008

Ad hoc Unit Tests with Snippet Compiler (Typemock Isolator Enabled)

If you're a fan of snippet compiler (if you're not you should seriously check it out)Travis Illig published a little template for writing Typemock Isolator test inside this handy little tool.

the reasons you'd need a specialized template in the first place to write these kinds of tests in snippet compiler:

1) Typemock Isolator uses the .NET profiling APIs to work its magic, so the .net process running your tests need to have a couple of environment variables enabled to work

2) His code template actually creates and runs a new process that triggers nunit-console.exe with the path of the current code you just wrote in snippet compiler allowing you to effecively write and run unit tests in snippet compiler!

3) the nunit-console process will already have the env. vars as mentioned in the first item set to it.

Travis' template will work for anything nunit can run, not just typemock isolator tests, which is pretty cool.

Full info and download here.