Comments (6)
Hi there
in our team we like nspec too, as much as to become contributors!
Thanks for taking the time to try to make it work. We have not been investing huge amounts of time lately, and state-of-the-art with VS2017 is a little bit foggy. Let's try to recap:
-
NSpec has been ported itself to .NET Core 1.x, and it can be referenced by projects in the project.json/xproj format, targeting .NET Core and .NET Framework. It can still be referenced by old style-csproj projects targeting .NET Framework.
-
For VS2015, there's a dotnet-test enabled runner, which is used both by command line and as a VS2015 test adapter, so you can see tests in Test Explorer.
-
This VS Adapter works with old style-csproj projects targeting .NET Framework in VS versions up to 2015.
Our understanding is that in order to have a VS2017 adapter, one should somehow leave the dotnet-test type of runner and "go back" to the VS adapter type. Now, here's the crux:
Our current NSpec.VsAdapter is itself an old style-csproj project in .NET Framework. It has not been ported yet to .NET Core, nor to VS2017 csproj type of project. Also, it is built against a specific version of NSpec (non-.NET Core yet), and this is bad in general: it should instead dynamically reference the NSpec.dll coming with the test project it's running.
Some time ago we tried porting NSpec.VsAdapter initially just to .NET Core in a project.json/xproj project, and at the same time we tried making it dynamically reference NSpec.dll. There we hit the infamous Assembly.Load problems. We thought those had gone away for good, when we previously coded the same thing in dotnet-test runner (that one also loads NSpec dynamically from test project). After trying to solve those problems for some time, we did not have further chances to work at it again.
So, as you can guess, there's some (debug+dev) work to do in order to make VS adapter work in VS2017.
from nspec.
@warwickfoster looking forward to your VS2017 Enterprise test runner contributions.
from nspec.
from nspec.
It's very unfortunate that I couldn't get this to work through the VS 2017 adapter for .NET Core 2 project (new .csproj format).
from nspec.
We're not yet actively working on VS2017 / .NET Core 2 projects, also given the relative "instability" on the tooling side, that's the main reason. Please feel free to ask for info if you want to give a stab at that.
from nspec.
@ivan-prodanov dig in and figure it out :-)
from nspec.
Related Issues (20)
- Support .NetStandard 1.5 or lower HOT 1
- Details of inner exceptions are not displayed in console output HOT 2
- Feature: An opposite version of `expect` HOT 5
- Execution Order before_all does not get called HOT 15
- TeamCity support HOT 2
- Possibility to specify test execution order HOT 4
- Persisting underscore in Assertions HOT 2
- NullReferenceException with nested parameterized Tests HOT 7
- Documentation of how to use tags HOT 4
- Idea (NUnit, XUnit migration) HOT 2
- Getting Started guide on nspec.org incorrect HOT 4
- Feature: Capture and rethrow errors into the "it"s HOT 6
- CleanMessage sometimes removes useful information HOT 4
- Continuous Runner similar to karma HOT 10
- Can't find instructions on setting up Specwatchr - URL http://nspec.org/continuoustesting 404's HOT 3
- it / specify on class level do not work HOT 8
- Tagging feedback HOT 2
- Support .net core 3.x +? HOT 1
- Is NSpec dead? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nspec.