-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any plans for updating this for latest version of .NET Core? #185
Comments
Hi there Are you working with a .NET Core project.json / .xproj project? As the library (actually the runners) do not support yet the recent .NET Core .csproj / msbuild project format arrived with VS2017. |
It's a .NET Core with .csproj / msbuild. That's why I'm asking. But if I'm reading your comment correctly you're saying that the runners (like for xunit, nunit, etc...) haven't been updated yet? So what's the timeline for the runners getting updated looking like? |
+1 |
"Yes and no." .NET Core projects with .csproj / msbuild / VS2017 are not supported yet. When saying runners, those are only the NSpec runners, I'm not speaking about other test framework runners. Available option today, for such a project, is to have a simple (.NET Core) console application acting as a custom runner. See e.g. Console App on website, or ping @amirrajan for some simple gist. We have other "runners", like dotnet-test NSpec console runner and NSpec Visual Studio test adapter, but those have not been ported yet to the new setup. We plan to do that in the future, of course PR are more than welcome. HTH |
+1 on just making a console app. I think you'll be happier in the long run. I'd be happy to work through any snags you have with getting one working. |
@amirrajan what are the advantages of having a separate console app, as opposed to seemless integration with |
|
Aside: just noting that @BrainCrumbz likes editor and |
I think most developers would prefer first-class integration with the tools they use every day. Working on a large team, it's best to have more options than fewer. Especially in the .NET world, most people live in the IDE, so they expect integration with Visual Studio, Resharper, etc... I am in the process of shaping the template for how a lot of new asp.net core projects in our team will be developed. I am evaluating a few options for test frameworks, but at the moment the lack of integration with the 'Microsoft' way doing things is not playing in favor of NSpec, when some of the 'competitors' seem to be ahead in the game on dotnet core support. At the same time I like how nspec resembles Mocha in some way, and since we also do a lot of Node it has a great appeal. If there's any way I can help, I am happy to evaluate if it's doable for me to help this going forward. |
We had already this chat with @amirrajan , it's somewhere in the issue history 😺 , all this is known and acknowledged since. The NSpec features that are appealing to your team are the same that worked for us. We've been happily using it with VS2013 and VS2015 on classic .NET framework and, after migration, also on .NET Core project.json from dotnet-test console or VS2015. Re. help, a couple of possibilities:
BTW thanks for your helpfulness |
@stefanoric thanks for your input :-) I completely understand the expectations for first class support in VS. |
Okay, so I'm down with creating a console application, just not really sure how to follow the instructions when @amirrajan, @BrainCrumbz mentioned you could maybe post a simple gist to follow how to get this setup. Something like that would be much appreciated. I'm new to C# coming from Ruby (so I'm still figuring out tooling), and being able to use something with contexts and an RSPec style DSL would help me out a ton. |
@stefanoric: Other food for thought. Having console output (and not being constrained by the overhead of learning VS extension creation) lets me do crazy things like this: http://amirrajan.net/StackTracePreview/#/toc |
Same as amirrajan, working on .net core 2.0 on ubuntu machine. |
@ylelan thanks for pointing that out. Actually yes, |
Even better yes |
I'm using the current 1.0.1 version of the dotnet cli. And whenI run
dotnet test
I get this outputAll the examples from the docs use project.json / .xproj format for managing dependencies. I tried using dotnet's updater but it didn't work.
The text was updated successfully, but these errors were encountered: