Skip to content

Commit 72bf3df

Browse files
Copilotimnasnainaec
andcommitted
Add IntegrationTest category and test:integration/test:unit scripts
Co-authored-by: imnasnainaec <6411521+imnasnainaec@users.noreply.github.com>
1 parent bd6643e commit 72bf3df

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Backend.Tests/Repositories/WordRepositoryTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Backend.Tests.Repositories
1414
/// Integration tests for <see cref="WordRepository"/> that spin up an actual MongoDB instance.
1515
/// </summary>
1616
[TestFixture]
17+
[Category("IntegrationTest")]
1718
public sealed class WordRepositoryTests
1819
{
1920
private static MongoDbTestRunner _runner = null!;

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"test": "run-s test-backend test-frontend",
3333
"test-backend": " dotnet test Backend.Tests/Backend.Tests.csproj",
3434
"test-backend:coverage": "dotnet test Backend.Tests/Backend.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:Threshold=77",
35+
"test:integration": "dotnet test Backend.Tests/Backend.Tests.csproj --filter \"TestCategory=IntegrationTest\"",
36+
"test:unit": "dotnet test Backend.Tests/Backend.Tests.csproj --filter \"TestCategory!=IntegrationTest\"",
3537
"test-frontend": " node scripts/jestTest.js",
3638
"test-frontend:coverage": "node scripts/jestTest.js --coverage --watchAll=false",
3739
"test-frontend:debug": " node --inspect-brk scripts/jestTest.js --runInBand --no-cache",

0 commit comments

Comments
 (0)