Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nspec/nspec

A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.
https://github.com/nspec/nspec

bdd core dotnet mocha nspec nspec-tests rspec tdd testing

Last synced: 3 days ago
JSON representation

A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.

Awesome Lists containing this project

README

        

# NSpec

[![NuGet Version and Downloads count](https://buildstats.info/nuget/NSpec)](https://www.nuget.org/packages/NSpec)
[![Build status](https://ci.appveyor.com/api/projects/status/5mmtg044ds5xx8xr/branch/master?svg=true)](https://ci.appveyor.com/project/BrainCrumbz/nspec/branch/master)

NSpec is a BDD (Behavior Driven Development) testing framework of the xSpec (Context/Specification)
flavor for .NET. NSpec is intended to drive development by specifying behavior within
a declared context or scenario. NSpec is heavily inspired by RSpec and Mocha.

## Documentation

See [nspec.org](http://nspec.org/) for instructions on getting started and documentation.

## Examples

See under [examples/](./examples):

- [DotNetTestSample](./examples/DotNetTestSample)
Sample solution showing how to setup a NSpec test project targeting .NET Core

- [NetFrameworkSample](./examples/NetFrameworkSample)
Sample solution showing how to setup a NSpec test project targeting .NET Framework

Also, there are a couple of projects under [sln/test/Samples/](./sln/test/Samples) path,
[SampleSpecs](./sln/test/Samples/SampleSpecs) and [SampleSpecsFocus](./sln/test/Samples/SampleSpecsFocus).
Those are part of main NSpec solution, needed when testing NSpec itself, and contain several
mixed examples of NSpec test classes.

## Breaking changes

To check for potential breaking changes, see [BREAKING-CHANGES.md](./BREAKING-CHANGES.md).

## Contributing

See [contributing](CONTRIBUTING.md) doc page.

## License

[MIT](./license.txt)

## Credits

NSpec is written by [Matt Florence](http://twitter.com/mattflo) and
[Amir Rajan](http://twitter.com/amirrajan). It's shaped and benefited by hard work from
our [contributors](https://github.com/nspec/NSpec/contributors).