Skip to content

Commit 52ee3da

Browse files
07souravkundafrancisf
authored andcommitted
update: readme
1 parent 0a4a9c7 commit 52ee3da

File tree

6 files changed

+14
-23
lines changed

6 files changed

+14
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ obj
88
local.log
99
browserstack.err
1010
log
11+
.config

NUnit-BrowserStack/.config/dotnet-tools.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

NUnit-BrowserStack/NUnit-BrowserStack.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14+
<PackageReference Include="BrowserStack.TestAdapter" Version="0.0.1" />
1415
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
1516
<PackageReference Include="NUnit" Version="3.13.3" />
1617
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />

NUnit-BrowserStack/SampleLocalTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace BrowserStack
66
{
77
[TestFixture]
8-
[Category("sample_local_test")]
8+
[Category("sample-local-test")]
99
public class SampleLocalTest : BrowserStackNUnitTest
1010
{
1111
public SampleLocalTest() : base() { }

NUnit-BrowserStack/SampleTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace BrowserStack
55
{
66
[TestFixture]
7-
[Category("sample_test")]
7+
[Category("sample-test")]
88
public class SampleTest : BrowserStackNUnitTest
99
{
1010
public SampleTest() : base() { }
@@ -23,4 +23,4 @@ public void SearchBstackDemo()
2323
Assert.AreEqual(productOnCartText, productOnPageText);
2424
}
2525
}
26-
}
26+
}

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33

44
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
55

6-
<img src ="http://www.nunit.org/img/logo.gif" height = "71">
6+
<img src ="https://nunit.org/img/nunit.svg" height = "71">
77

8-
## Setup
8+
## Run Sample Build
99
* Clone the repo
1010
* Open the solution `NUnit-BrowserStack.sln` in Visual Studio
1111
* Build the solution
12-
* Update `App.config` file with your BrowserStack Username and Access Key(https://www.browserstack.com/accounts/settings)
13-
14-
## Running your tests from Test Explorer via NUnit Test Adapter
15-
- To run a single test, run test with fixture `single`
16-
- To run local tests, run test with fixture `local`
17-
- To run parallel tests, run tests with fixture `parallel`
12+
* Update `browserstack.yml` file with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
13+
### Running your tests from CLI
14+
* To run the test suite having cross-platform with parallelization, dotnet test --filter "Category=sample-test"
15+
* To run local tests, dotnet test --filter "Category=sample-local-test"
16+
### Running your tests from Test Explorer
17+
- To run a parallel tests, run test with fixture `sample-test`
18+
- To run local tests, run test with fixture `sample-local-test`
1819

1920
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
2021

0 commit comments

Comments
 (0)