mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-04-11 13:23:11 +00:00
1.3 KiB
1.3 KiB
Distributed System Tests for Nim-Codex
Local setup
These steps will help you set up everything you need to run and debug the tests on your local system.
Installing the requirements.
- Install dotnet v10.0 or newer. (If you install a newer version, consider updating the .csproj files by replacing all mention of
net10.0with your version.) - Set up a nice C# IDE or plugin for your current IDE.
- Install docker desktop.
- In the docker-desktop settings, enable kubernetes using kubeadm. (This might take a few minutes.) Note that the version of the
KubernetesClientpackage in theKubernetesWorkflowproject must be compatible with the version of Kubernetes thatkubeadmexposes. For example, the current version of Kubernetes that kubeadm exposes is1.34.1, thereforeKubernetesClientmust use version18.x. See https://github.com/kubernetes-client/csharp#version-compatibility for more information.
Running the tests
Most IDEs will let you run individual tests or test fixtures straight from the code file. If you want to run all the tests, you can use dotnet test. You can control which tests to run by specifying which folder of tests to run. dotnet test Tests/CodexTests will run only the tests in /Tests/CodexTests and exclude the long tests.