SubSonicMedia.TestKit
1.0.4-beta.1
dotnet add package SubSonicMedia.TestKit --version 1.0.4-beta.1
NuGet\Install-Package SubSonicMedia.TestKit -Version 1.0.4-beta.1
<PackageReference Include="SubSonicMedia.TestKit" Version="1.0.4-beta.1" />
<PackageVersion Include="SubSonicMedia.TestKit" Version="1.0.4-beta.1" />
<PackageReference Include="SubSonicMedia.TestKit" />
paket add SubSonicMedia.TestKit --version 1.0.4-beta.1
#r "nuget: SubSonicMedia.TestKit, 1.0.4-beta.1"
#:package SubSonicMedia.TestKit@1.0.4-beta.1
#addin nuget:?package=SubSonicMedia.TestKit&version=1.0.4-beta.1&prerelease
#tool nuget:?package=SubSonicMedia.TestKit&version=1.0.4-beta.1&prerelease
SubSonicMedia.TestKit
A comprehensive testing toolkit for validating the SubSonicMedia API against your Subsonic server.
๐งช Features
- Structured API tests with clear pass/fail results
- JSON output for test results
- JUnit XML output for integration with CI/CD systems
- Record server responses for future mocking
- Command-line interface for automation
- npm-style output with UTF-8 icons
- Detailed logging and error reporting
๐ Getting Started
Installation
Package Manager Console
Install-Package SubSonicMedia.TestKit
.NET CLI
dotnet add package SubSonicMedia.TestKit
PackageReference (in .csproj file)
<PackageReference Include="SubSonicMedia.TestKit" Version="x.y.z" />
You can find the latest version on NuGet.org.
Configuration
The TestKit uses a .env file for configuration. Copy the .env.example file to .env in your project directory and update the following settings:
# Server information
SUBSONIC_SERVER_URL=https://your-server-url
SUBSONIC_USERNAME=your-username
SUBSONIC_PASSWORD=your-password
# Test configuration
RECORD_TEST_RESULTS=true
OUTPUT_DIRECTORY=./TestResults
JUNIT_XML_OUTPUT=true
Usage
# Run all tests
dotnet run
# Run a specific test
dotnet run test "Connection Test"
# Run with JUnit XML output
dotnet run -- --junit-xml
# List available tests
dotnet run list
# Get help
dotnet run help
๐ License
This project is licensed under the GNU General Public License v3.0 or later.
๐ Documentation
For more detailed information about the SubSonicMedia library and TestKit, please refer to the main repository documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- CommandLineParser (>= 2.9.1)
- DotNetEnv (>= 3.1.1)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
- Spectre.Console (>= 0.49.1)
- SubSonicMedia (>= 1.0.4-beta.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|