Skip to content

Commit

Permalink
Mark unit tests in DB collection
Browse files Browse the repository at this point in the history
Added a DB collection marker to classify multiple unit test classes. This allows them to be run as a group separately from other tests, providing more flexible testing control.
  • Loading branch information
JezhikLaas committed Dec 12, 2023
1 parent 6de2274 commit ea71089
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Quartz.Impl.RavenJobStore.UnitTests;

[Collection("DB")]
public class ClusteredSchedulerTests : SchedulerTestBase
{
private List<IScheduler> Schedulers { get; } = new();
Expand Down
1 change: 1 addition & 0 deletions Quartz.Impl.RavenJobStore.UnitTests/EntitiesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Quartz.Impl.RavenJobStore.UnitTests;
using Quartz.Impl.RavenJobStore;
using Entities;

[Collection("DB")]
public class EntitiesTests : TestBase
{
private RavenJobStore Target { get; }
Expand Down
1 change: 1 addition & 0 deletions Quartz.Impl.RavenJobStore.UnitTests/ImplementationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Quartz.Impl.RavenJobStore.UnitTests;

using Quartz.Impl.RavenJobStore;

[Collection("DB")]
public class ImplementationTests : TestBase
{
private RavenJobStore Target { get; }
Expand Down
1 change: 1 addition & 0 deletions Quartz.Impl.RavenJobStore.UnitTests/RavenTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Quartz.Impl.RavenJobStore.UnitTests;

[Collection("DB")]
public class RavenTests : TestBase
{
[Fact(DisplayName = "If a document is modified Then streaming it sees the changes")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Quartz.Impl.RavenJobStore.UnitTests;

[Collection("DB")]
public class SingleSchedulerTests : SchedulerTestBase
{
private IScheduler? Scheduler { get; set; }
Expand Down
1 change: 1 addition & 0 deletions Quartz.Impl.RavenJobStore.UnitTests/UtilsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Quartz.Impl.RavenJobStore.UnitTests;

[Collection("DB")]
public class UtilsTests : TestBase
{
private RavenJobStore Target { get; }
Expand Down

0 comments on commit ea71089

Please sign in to comment.