Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed Oct 20, 2023
1 parent 3f19639 commit 4412745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Currently the example tests in this repo are aimed at ASP .NET core with entity
- Tests can run in parallel.

## How to use
I decided not to turn this into a nuget package for now. Depending on if you are using NUnit or xUnit copy the code that you need to your project. For instance if you are using PostgreSql then copy the code from [TestExamplesDotnet](TestExamplesDotnet) and [TestExamplesDotnet.PostgreSql](TestExamplesDotnet.PostgreSql) to your test project. For examples on how to setup [NUnit](Examples/Api/PostgreSql/Api.PostgreSql.Nunit) or [xUnit](Examples/Api/PostgreSql/Api.PostgreSql.Xunit) see the [Examples](Examples). I do suggest you flatten the code that you need into a single project to keep things simpler.
I decided not to turn this into a nuget package for now. Depending on if you are using NUnit or xUnit copy the code that you need to your project. For instance if you are using PostgreSql then copy the code from [TestExamplesDotnet](TestExamplesDotnet) and [TestExamplesDotnet.PostgreSql](TestExamplesDotnet.PostgreSql) to your test project then use [Examples](Examples) to see how to setup your test project. I do suggest you flatten the code that you need into a single project to keep things simpler.

If can choose which testframework to use then I suggest going with NUnit as NUnit achieves a higher level of parallelism because it will even run test cases in the same class in parallel where xUnit will not run tests in the same class in parallel. As such most examples will be for NUnit but the setup is very similar.
If you can choose which testframework to use then I suggest going with NUnit as NUnit achieves a higher level of parallelism because it will even run test cases in the same class in parallel where xUnit will not run tests in the same class in parallel. As such most examples will be for NUnit but the setup is very similar.

## Examples
Some examples can be found in [Examples](Examples). For instance for postgresql you can find examples for NUnit and xUnit. There's also a browser test example using [Playwright](Examples/Razor/Razor.Playwright).
[Examples](Examples) contain example projects which will show you how to setup the tests for various types of applications. For instance for postgresql you can find examples for [NUnit](Examples/Api/PostgreSql/Api.PostgreSql.Nunit) and [xUnit](Examples/Api/PostgreSql/Api.PostgreSql.Xunit). There's also a browser test example using [Playwright](Examples/Razor/Razor.Playwright).

0 comments on commit 4412745

Please sign in to comment.