1

Is it possible to start a unit test from a webpage inside the webproject and show the result (FAILED - PASSED) after the test back on the webpage? I need to build something like that with ASP.Net MVC, C# and Unit tests. Can't seem to find a lot of info about it on the internet. The url should be something like this: http://mywebsite.com/Status

PitAttack76
  • 2,120
  • 5
  • 31
  • 44
  • Did you took a look into Jenkins? There are Plugins for it, allowing to build/test .net projects. – Alex H Sep 28 '15 at 07:53
  • If you say you couldn't find anything, it helps to show what you searched for. See [Is there an API for running Visual Studio Unit Tests programmatically?](http://stackoverflow.com/questions/2054994/is-there-an-api-for-running-visual-studio-unit-tests-programmatically). – CodeCaster Sep 28 '15 at 07:59
  • What Unit test framework are you using? This is easily done with Nunit, but I am unsure with MSTest – Jamie Rees Sep 28 '15 at 11:28
  • @JamieRees, I can use Nunit if that is what is needed. But how would I go about it to start the test from a status page? – PitAttack76 Sep 28 '15 at 12:32
  • Nunit supports running tests from cmd line parameters. you would also need to provide the test dll and dependencies. – Jamie Rees Sep 28 '15 at 12:55

0 Answers0