我们做了一个全新的项目,我们希望使用xUnit作为单元测试。但是,我们希望以.net 4.6.0和.net核心1.0为目标。
我们所有的net460项目都在我们的project.json中。据我所见,为了与xUnit兼容,我们需要在dnx451中进行测试项目。这是我们遇到问题的地方,因为我们的目标至少是460 .
当我们更改为dnx460 in xUnit project.json时,测试资源管理器中看不到测试.?有什么理由吗?我们是不是搞错了?
我们使用VS2015。
这是我们的project.json
{
"version": "1.0.0-*",
"description": "SESAMEngineFacturation.Tests Class Library",
"authors": [ "christophe.mom" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"commands": {
"test": "xunit.runner.dnx"
},
"dependencies": {
"SESAMEngineFacturation": "",
"xunit": "2.1.0",
"xunit.runner.dnx": "2.1.0-*",
"FluentAssertions": "4.2.2"
},
"frameworks": {
"dnx451": { }
}
}
发布于 2016-03-21 11:26:05
根据这个GitHub问题:https://github.com/xunit/xunit/issues/600,我想我们必须等待ASP.NET核心RC2出现,才能让dnx460支持VSTests上的xunit.runner和Resharper单元测试资源管理器。
https://stackoverflow.com/questions/35626118
复制相似问题