Scheduled to automate test execution in nunit

How can I automatically run a test in Nunit at a specific time. For example, I want to run nightly build tests

+4
source share
5 answers

All the answers sound good, but we found another way to use MSBuild with Nunit for TeamBuild. Here is a detailed step-by-step procedure for him.

http://blog.drorhelper.com/2010/06/how-to-run-your-unit-tests-as-part-of.html

http://nunit4teambuild.codeplex.com/releases/view/45765

0
source

You can use a CI system such as hudson or Cruisecontrol.NET, these systems support most of the .NET test infrastructure modules. We use MSTest for new projects and NUnit and create them using Hudson.

+4
source

You can simply configure the scheduled task to run the nunit-console.exe application and point it to the unit test project.

Just note that continuous integration means that you will create your software after each registration and as part of this assembly you will run your unit test. But running / building code at night is also a good system.

+3
source

You can watch Cruise Control.

http://cruisecontrol.sourceforge.net/

I once worked for a client who used cruise control and nant / nunit to build, checked the code automatically, and then deployed it to automatically update my desktop.

+3
source

I think you should take a look at TeamCity, it is a very good tool for automating all kinds of tests, and in particular with NUnit,

We use TeammCity for:

  • Nunit: test code base of 3,000 tests.
  • NCover: for measuring coverage
  • Documentation Generation
  • Web test (with NUnit and WatiN)
  • Checking the health of the code

We used to have Cruise Control 3 years ago, and I have to say that it is less stable than TeamCity (or it was).

EDIT:

And TeamCity is a distributed architecture that allows you to have 3 agents (if you take a free license) that runs every type of assembly that you configured.

+2
source

Source: https://habr.com/ru/post/1333824/


All Articles