How can I run xUnit Unit Tests with VS2015 Preview? -


i added "xunit.net runner visual studio" v0.99.8 via extensions manager, when open test explorer window, not seem pick of unit tests. also, resharper 9 eap version of resharper supports vs2015 seem yet have plugin xunit test runner.

how then, can run xunit unit tests in vs2015 preview?

you can find answer here: http://blogs.msdn.com/b/webdev/archive/2014/11/12/announcing-asp-net-features-in-visual-studio-2015-preview-and-vs2013-update-4.aspx

visual studio supports running , debugging asp.net 5 xunit tests through test explorer. need add xunit dependencies , test commands test project's project.json file, shown below (note: install xunit packages need add https://www.myget.org/f/aspnetvnext/api/v2 nuget package source):

"dependencies": {     "xunit.krunner": "1.0.0-beta1" },  "commands": {     "test": "xunit.krunner" }, 

if asking how add https://www.myget.org/f/aspnetvnext/api/v2 nuget package source... here steps:

  1. in visual studio 2015 preview go tools -> options -> nuget package manager -> package sources
  2. click plus (add) button @ top (see image below)
  3. enter name , source in image below (note: sure click update button after entering name , source) enter image description here

happy coding!


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -