Skip to content

The official .NET adapter for Buildkite Test Analytics which collects information about your tests

License

Notifications You must be signed in to change notification settings

buildkite/test-collector-dotnet

Repository files navigation

Buildkite Test Collector for .NET (Beta)

The official .NET adapter for Buildkite Test Analytics which collects information about your tests.

Supported test frameworks: Xunit.

📦 Supported CI systems: Buildkite, GitHub Actions, CircleCI, and others via the BUILDKITE_ANALYTICS_* environment variables.

👉 Installing

  1. Create a test suite, and copy the API token that it gives you.

  2. Add Buildkite.TestAnalytics.Xunit to your list of dependencies in your Xunit test project:

$ dotnet add package Buildkite.TestAnalytics.Xunit
  1. Set up your API token

Add the BUILDKITE_ANALYTICS_TOKEN environment variable to your build system's environment.

  1. Run your tests

Run your tests like normal. Note that we attempt to detect the presence of several common CI environments, however if this fails you can set the CI environment variable to any value and it will work.

$ dotnet test Buildkite.TestAnalytics.Tests
  1. Verify that it works

If all is well, you should see the test run in the test analytics section of the Buildkite dashboard.

🔜 Roadmap

See the GitHub 'enhancement' issues for planned features. Pull requests are always welcome, and we’ll give you feedback and guidance if you choose to contribute 💚

⚒ Developing

  1. Cloning the repository.
  2. Run the tests: dotnet test

Useful resources for developing collectors include the Buildkite Test Analytics docs and the RSpec and Minitest collectors.

👩‍💻 Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/buildkite/test-collector-dotnet

🚀 Releasing

  1. Version bump the code, tag and push.

  2. Publish to NuGet.

  3. Create a new github release.

📜 License

The package is available as open source under the terms of the MIT License.

🤙 Thanks

Thanks to the folks at Alembic for building and maintaining this package.

About

The official .NET adapter for Buildkite Test Analytics which collects information about your tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •