Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterblazejewicz/xunit-patterns
xUnit tests patterns based on xUnit documentation. ASP.NET 5 version using SQLite 3
https://github.com/peterblazejewicz/xunit-patterns
Last synced: 25 days ago
JSON representation
xUnit tests patterns based on xUnit documentation. ASP.NET 5 version using SQLite 3
- Host: GitHub
- URL: https://github.com/peterblazejewicz/xunit-patterns
- Owner: peterblazejewicz
- Created: 2015-12-05T17:51:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-07T21:05:35.000Z (almost 9 years ago)
- Last Synced: 2023-04-05T21:37:57.898Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xUnit Tests Patters
Tests patterns taken from [xUnit](https://xunit.github.io/) [documentation](https://xunit.github.io/docs/) and elsewhere.
Note that this tests requires local installation of SQLite database.
## xUnit command line usage
Hard to find, but call `dnx test -?`
```
dnx test -?
xUnit.net DNX Runner (64-bit DNXCore 5.0)
Copyright (C) 2015 Outercurve Foundation.usage: xunit.runner.dnx [configFile.json] [options] [reporter] [resultFormat filename [...]]
Valid options:
-nologo : do not show the copyright message
-nocolor : do not output results with colors
-parallel option : set parallelization based on option
: none - turn off all parallelization
: collections - only parallelize collections
: assemblies - only parallelize assemblies
: all - parallelize collections and assemblies
-maxthreads count : maximum thread count for collection parallelization
: default - run with default (1 thread per CPU thread)
: unlimited - run with unbounded thread count
: (number) - limit task thread pool size to 'count'
-wait : wait for input after completion
-diagnostics : enable diagnostics messages for all test assemblies
-trait "name=value" : only run tests with matching name/value traits
: if specified more than once, acts as an OR operation
-notrait "name=value" : do not run tests with matching name/value traits
: if specified more than once, acts as an AND operation
-method "name" : run a given test method (should be fully specified;
: i.e., 'MyNamespace.MyClass.MyTestMethod')
: if specified more than once, acts as an OR operation
-class "name" : run all methods in a given test class (should be fully
: specified; i.e., 'MyNamespace.MyClass')
: if specified more than once, acts as an OR operation
-namespace "name" : run all methods in a given namespace (i.e.,
: 'MyNamespace.MySubNamespace')
: if specified more than once, acts as an OR operationReporters: (optional, choose only one)
-appveyor : forces AppVeyor CI mode (normally auto-detected)
-quiet : do not show progress messages
-teamcity : forces TeamCity mode (normally auto-detected)
-verbose : show verbose progress messagesResult formats: (optional, choose one or more)
-xml : output results to xUnit.net v2 style XML file
```This project can be run with:
```
dnx test -verbose
xUnit.net DNX Runner (32-bit DNX 4.5.1)
Discovering: TestPatterns
Discovered: TestPatterns
Starting: TestPatterns
TestPatterns.ClassFixtureTests.ConnectionIsEstablished
TestPatterns.ConnectionTests.ConnectionIsEstablished
TestPatterns.ClassFixtureTests.FooUserWasInserted
TestPatterns.InsertTests.FooUserWasInserted
Finished: TestPatterns
=== TEST EXECUTION SUMMARY ===
TestPatterns Total: 4, Errors: 0, Failed: 0, Skipped: 0, Time: 0.227s
```## Author
@peterblazejewicz