Skip to content

Tests - #38

Merged
wangkanai merged 2 commits into
mainfrom
tests
Aug 31, 2025
Merged

Tests#38
wangkanai merged 2 commits into
mainfrom
tests

Conversation

@wangkanai

Copy link
Copy Markdown
Owner

This pull request updates the Directory.Build.targets file to improve the build configuration for benchmark and test projects. The main changes add specific settings and dependencies for projects whose names contain "Benchmark" or "Tests", making it easier to manage benchmarks and tests consistently.

Benchmark project configuration:

  • Added a property group to set OutputType to Exe, enable optimizations, disable packing, and exclude from SonarQube analysis for projects with "Benchmark" in their name.
  • Added a BenchmarkDotNet package reference for benchmark projects.

Test project configuration:

  • Added a property group to set OutputType to Exe and disable packing for test projects.
  • Added a Using directive for Xunit in test projects.
  • Updated the test content to include xunit.runner.json (instead of a linked testconfig.json) and copy it to the output directory.
  • Added a Microsoft.TestPlatform.TestHost package reference for test projects.

@wangkanai wangkanai added this to the 3.4 milestone Aug 31, 2025
@wangkanai wangkanai self-assigned this Aug 31, 2025
Copilot AI review requested due to automatic review settings August 31, 2025 09:24
@wangkanai wangkanai added the enhancement New feature or request label Aug 31, 2025
@wangkanai wangkanai moved this to In Progress in Federation Aug 31, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request enhances the Directory.Build.targets file to provide standardized build configurations for benchmark and test projects. The changes automatically configure projects based on their naming conventions to ensure consistent settings across the codebase.

  • Adds automated configuration for benchmark projects (optimization, executable output, SonarQube exclusion)
  • Introduces standardized test project settings with xUnit integration and test host dependencies
  • Updates test configuration file handling from linked testconfig.json to local xunit.runner.json

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Directory.Build.targets
@wangkanai
wangkanai merged commit 15e5f9a into main Aug 31, 2025
1 check passed
@wangkanai
wangkanai deleted the tests branch August 31, 2025 09:29
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Federation Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants