Skip to content

Commit

Permalink
Fix parallelization in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmcroft committed Feb 16, 2023
1 parent a125f9a commit 502bdb5
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion tests/Legerity.Core.Tests/Tests/ByAllTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Legerity.Core.Tests.Tests;
using Shouldly;

[TestFixture]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class ByAllTests : BaseTestClass
{
[Test]
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Core.Tests/Tests/ByNestedTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Legerity.Core.Tests.Tests;
using Web.Extensions;

[TestFixture]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class ByNestedTests : BaseTestClass
{
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Legerity.Core.Tests.Tests;
using Web.Elements.Core;

[TestFixture]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class WaitUntilElementIsNotVisibleTests : BaseTestClass
{
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Legerity.Core.Tests.Tests;
using Web.Elements.Core;

[TestFixture]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class WaitUntilElementIsVisibleTests : BaseTestClass
{
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Core.Tests.Tests;
using Shouldly;

[TestFixture]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class WebAppManagerOptionsTests : BaseTestClass
{
[Test]
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/ButtonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Legerity.Web.Tests.Tests;
using Pages;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class ButtonTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_button_test";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/CheckBoxTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class CheckBoxTests : W3SchoolsBaseTestClass
{
private const string WebApplication =
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/DateInputTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class DateInputTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_date";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/FileInputTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class FileInputTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_file";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/ImageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class ImageTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_image_test";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/ListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class ListTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_lists";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/MultipleSelectTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Legerity.Web.Tests.Tests;
using System.Collections.Generic;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class MultipleSelectTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select_multiple";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/NumberInputTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class NumberInputTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_number";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/OptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class OptionTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/RadioButtonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class RadioButtonTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_radio";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/RangeInputTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class RangeInputTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_range";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/SelectTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class SelectTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/TableTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class TableTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_intro";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/TextAreaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class TextAreaTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_textarea";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/TextInputTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class TextInputTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_text";
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/WebByExtraTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixture]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class WebByExtraTests : W3SchoolsBaseTestClass
{
[Test]
Expand Down
2 changes: 1 addition & 1 deletion tests/Legerity.Web.Tests/Tests/WebElementWrapperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Legerity.Web.Tests.Tests;
using Shouldly;

[TestFixtureSource(nameof(PlatformOptions))]
[Parallelizable(ParallelScope.Children)]
[Parallelizable(ParallelScope.All)]
internal class WebElementWrapperTests : W3SchoolsBaseTestClass
{
private const string WebApplication = "https://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_text";
Expand Down

0 comments on commit 502bdb5

Please sign in to comment.