Skip to content

Commit

Permalink
Remove .NET 6.0 framework target
Browse files Browse the repository at this point in the history
(cherry picked from commit fe82a6c)
  • Loading branch information
nozzlegear committed Jan 1, 2025
1 parent 6cb4868 commit b1a98be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<Nullable>enable</Nullable>
<LangVersion>Latest</LangVersion>
<VersionPrefix>1.7.0</VersionPrefix>
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp/ShopifySharp.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.0;net8.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
<AssemblyName>ShopifySharp</AssemblyName>
<RootNamespace>ShopifySharp</RootNamespace>
<VersionPrefix>6.22.0</VersionPrefix>
Expand Down
6 changes: 3 additions & 3 deletions docs/contribution-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ Once you've got the env file configured, you'll be ready to run the tests. Most
If you've got a ton of time on your hands, you could run all tests at once with the following command:

```sh
dotnet test --framework net6.0 ShopifySharp.Tests
dotnet test --framework net8.0 ShopifySharp.Tests
```

That command will run all of the tests in the solution using the `net6.0` (.NET 6) framework. It can take upwards of 15 minutes to run the entire suite, and it's likely that things will break due to rate limits. ShopifySharp's automated tests actually run each test category one at a time, rather than the entire suite all at once.
That command will run all of the tests in the solution using the `net8.0` (.NET 8) framework. It can take upwards of 15 minutes to run the entire suite, and it's likely that things will break due to rate limits. ShopifySharp's automated tests actually run each test category one at a time, rather than the entire suite all at once.

### Running tests for specific categories/services

Every test file in the _ShopifySharp.Tests_ folder has its own category. For example, tests for the order service use the `Order` category. We use xUnit as our test runner, which means you can run all the tests in just one category using this command:

```sh
dotnet test --framework net6.0 --filter "Category=Order"
dotnet test --framework net8.0 --filter "Category=Order"
```

It's generally recommended that you run one single test category for whatever you're testing, rather than running the entire ShopifySharp suite of tests all at once.
Expand Down

0 comments on commit b1a98be

Please sign in to comment.