Docs: Guidance on using NSpec in dotnet core
See original GitHub issueFor those wondering how to get started, this is what I figured out so far.
- Create a new xunittest project by running the command
dotnet new -t xunittest
- Replace
xunit
nuget package in theproject.json
with"NSpec": "2.0.0"
- Replace
dotnet-test-xunit
nuget package in theproject.json
with"dotnet-test-nspec": "0.1.0"
- Replace
xunit
in thetestRunner
setting of theproject.json
file withnspec
- Run
dotnet restore
followed bydotnet test
to restore and execute the test project.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
NSpec - A testing framework that's like Mocha and RSpec, but ...
NSpec is a battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec. It has a fancy logo, is released...
Read more >nuspec File Reference for NuGet
The .nuspec file contains package metadata used when building a package and to provide information to package consumers.
Read more >NSpec templates for .NET Core command line interface
DotNetNewNSpec is a set of Visual Studio project templates to be used when creating projects from .NET Core dotnet new command line interface....
Read more >.NET | RudderStack Docs
RudderStack's .NET SDK lets you track your customer event data from your .NET applications and send it to your specified destinations via RudderStack....
Read more >Overview
This guide covers RabbitMQ .NET/C# client and its public API. It assumes that the most recent major version of the client is used...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we’ll be adding those steps you described to the docs as well, @amirrajan
I wasn’t sure how to create a test project otherwise. I’m now happily converting all my xunit projects over.