简体   繁体   中英

How to run NUnit tests after deploy on deployed project

Is there any way to run Nunit tests on deployed project? Like after project has been deployed I have to run tests against the project on a deployed environment (because part of functionality can be run only on deployed environment due to the special access policy)

Is there any way to run Nunit tests on deployed project?

Normally NUnit is used to write unit tests against separate small functionalities of your application. If you want to run tests against a deployed version of your application then we are talking about integration tests. There are many different tools that can be used to test your running application. One of them is Sikuli . Alternatively if you want to keep using a .NET unit testing platform but firing requests against a real web server you can checkout SpecFlow . But no matter which tool you decide to use, you should be ready to write integration tests which are very different in nature compared to your unit tests.

It is possible to run tests writen for Nunit against a deployed environment. You need a way to configure your tests according to the environment to test.

The type of test: unit tests, integration tests, functional tests, system tests etc. is independent from the technology you use to run them. NUnit is a technology to execute tests and gather their results. It has probably been architectured thinking about unit tests, but you can even implement your system tests with it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM