Browsed by
Tag: Nunit

The curious case of the missing NUnit3 parameter.

The curious case of the missing NUnit3 parameter.

I had one of those days last week. Three hours spent trying to work out why my code wasn’t behaving: A test parameter was clearly in the applied RunSettings file, but when I tried to call the value from code it never changed from my default value. Why was it hiding from me? The background You know the deal, before logging off I had the work 90% finished. In the morning, I JUST needed to add some configuration to ensure…

Read More Read More

Configuring NUnit 3 to run different tests in each environment.

Configuring NUnit 3 to run different tests in each environment.

A couple of months ago I wrote a post explaining that don’t like to disable tests for a disabled feature in certain environments. I much prefer to switch the expected results and confirm the feature is disabled than simply to not test it. Sometimes however this really isn’t appropriate and you have no choice than to avoid running those tests. Today I’ll have a very quick look at ways to do this with NUnit 3. The options. Use different test…

Read More Read More

Opinion: Writing automated system tests is a great way to test a website / webapp.

Opinion: Writing automated system tests is a great way to test a website / webapp.

A few weeks ago I wrote a post explaining how running automated tests does not perform the same function as (good) manual testing. In a recent project, I was reminded that although running the tests is not deep testing, writing them is. I am very fortunate that I work with developers who are hot on quality and focused on writing appropriate unit tests for all their code, but what is the most cost effective way to have confidence that the…

Read More Read More