https://github.com/launchdarkly/dotnet-server-sdk-shared-tests
Unit test code shared by LaunchDarkly .NET SDK integration projects
https://github.com/launchdarkly/dotnet-server-sdk-shared-tests
feature-flags feature-toggles launchdarkly launchdarkly-sdk launchdarkly-sdk-component managed-by-terraform
Last synced: 1 day ago
JSON representation
Unit test code shared by LaunchDarkly .NET SDK integration projects
- Host: GitHub
- URL: https://github.com/launchdarkly/dotnet-server-sdk-shared-tests
- Owner: launchdarkly
- License: other
- Created: 2018-12-22T02:50:04.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-05-21T21:07:35.000Z (about 1 year ago)
- Last Synced: 2025-05-21T21:36:50.148Z (about 1 year ago)
- Topics: feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk, launchdarkly-sdk-component, managed-by-terraform
- Language: C#
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 43
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# [DEPRECATED]
Development has moved to [dotnet-core repository](https://github.com/launchdarkly/dotnet-core/tree/main/pkgs/shared/dotnet-server-sdk-shared-tests). This repository remains here to support legacy references to dotnet-server-sdk-shared-tests.
LaunchDarkly Server-Side .NET SDK Shared Test Code
==================================================
This project provides support code for testing LaunchDarkly .NET SDK integrations. Feature store implementations, etc., should use this code whenever possible to ensure consistent test coverage and avoid repetition. An example of a project using this code is [dotnet-server-sdk-redis](https://github.com/launchdarkly/dotnet-server-sdk-redis).
The code is not published to NuGet, since it isn't of any use in any non-test context. Instead, it's meant to be used as a Git subtree. Add the subtree to your project like this:
git remote add dotnet-server-sdk-shared-tests git@github.com:launchdarkly/dotnet-server-sdk-shared-tests.git
git subtree add --squash --prefix=dotnet-server-sdk-shared-tests/ dotnet-server-sdk-shared-tests master
Now you can add the project `LaunchDarkly.ServerSdk.SharedTests.csproj` within the subtree to your solution, and reference its classes in your tests.
To update the copy of `dotnet-server-sdk-shared-tests` in your repository to reflect changes in this one:
git subtree pull --squash --prefix=dotnet-server-sdk-shared-tests/ dotnet-server-sdk-shared-tests master