Category Archives: Test

Effort: Unhandled exception while trying to initialize the content of Table

We use Effort with the CsvDataLoader in our integration tests. After adding a new data file we got an exception. On the forum every thread ended with something like “my bad” or “never mind”. Looking closer to my csv file showed the error: a typo … Continue reading

Posted in Test | Tagged , , , | Leave a comment

Start-SqlJobAndWait

We have some SqlJobs that we run in our regression tests. To automate this we need something that can start the job and wait for it to finish. Based on this post we know we need to poll the sysjobhistory … Continue reading

Posted in Test, Tooling | Tagged , , , | Leave a comment

Be careful when using mocked repository

One of the software development best practices is to use interfaces and dependency injection. But be careful when using a mocked version of your repository. With FakeDbSet an InMemory IDbSet can be created for unit testing purposes. During setup you’d … Continue reading

Posted in Test | Tagged , , , , , | Leave a comment

Loadtesting with Powershell

Our product is in the acceptance testing phase. In the assigned environment the available tooling is very limited. But we must do a loadtest to report on the average requests / second our webservice can handle from a single client. … Continue reading

Posted in Test | Tagged , , | Leave a comment

Loadtest with Azure VM

For an upcoming release we decided to do a loadtest on our Azure test environment. Until now we used a set of local machines for this. The setup uses 6 machines that host our product, which consists of a number … Continue reading

Posted in Test | Tagged , | Leave a comment

Partial subs with nsubstitute

Finally got the hang of partial s(t)ubs with nsubstitute. The key is that the original method is called when setting up the sub. To avoid this use argument matchers and the DoNotCallBase() method. Property To test/setup the property to return … Continue reading

Posted in Test | Tagged , , | 2 Comments

How to convince developers and managers to do TDD

Questions and answers when introducing test driven development Continue reading

Posted in Test | Tagged , , | Leave a comment