https://github.com/bredah/csharp-web-test
C# Web Test - Boilerplate
https://github.com/bredah/csharp-web-test
csharp dotnet-core mstestv2 nunit selenium xunit
Last synced: 2 months ago
JSON representation
C# Web Test - Boilerplate
- Host: GitHub
- URL: https://github.com/bredah/csharp-web-test
- Owner: bredah
- Created: 2019-05-21T10:46:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T16:08:59.000Z (about 7 years ago)
- Last Synced: 2025-05-17T08:09:02.720Z (about 1 year ago)
- Topics: csharp, dotnet-core, mstestv2, nunit, selenium, xunit
- Language: C#
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Selenium
## CLI
### Create a Test project
- XUnit
```bash
dotnet "new" "xunit" "-lang" "C#" "-n" "Selenium.XUnit" "-o" "Selenium.XUnit"
```
- MSTest
```bash
dotnet "new" "mstest" "-lang" "C#" "-n" "Selenium.MSTest" "-o" "Selenium.MSTest"
```
- NUnit
```bash
dotnet "new" "nunit" "-lang" "C#" "-n" "Selenium.NUnit" "-o" "Selenium.NUnit"
```
- Add to project
```bash
dotnet sln "SOLUTION.sln" add "\PROJECT\PROJECT.csproj"
```
- Add reference
```bash
dotnet add "PROJECT/PROJECT.csproj" reference "PROJECT_LIB/PROJECT_LIB.csproj"
```
- Create a new library project
```bash
dotnet new classlib -lang C# -n PROJECT_NAME -o PROJECT_FOLDER
```
### SpecFlow
```bash
dotnet add ./PROJECT.csproj package SpecFlow
dotnet add ./PROJECT.csproj package SpecFlow.Tools.MsBuild.Generation
dotnet add ./PROJECT.csproj package SpecRun.SpecFlow
```