Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 29, 2025

Production readiness improvements: fix test infrastructure issues and add 112 unit tests for core components.

Test Infrastructure Fixes

  • Fix NuGet.Frameworks assembly loading error by adding DisableMSBuildAssemblyCopyCheck to test project
  • Fix xUnit warnings: null parameter handling, unused primary constructor parameters

New Test Coverage

Services (38 tests)

  • DockerfileParser: FROM, EXPOSE, WORKDIR, ENTRYPOINT, CMD parsing; multi-stage builds; file discovery
  • NetUtil: TFM validation, IsNet8OrHigher
  • TargetFrameworkValidator: TFM validation, Docker property detection

Infrastructure (12 tests)

  • DirExt: path normalization, nested path detection
  • DirectoryInfoExtensions: empty checks, subdirectory validation

Models (19 tests)

  • ProjectProperties, ProjCfg, ProjCfgEqualityComparer, ProjectInfo

Results

  • 151 total tests passing (was 39, with 19 failing)
  • CodeQL: no vulnerabilities
  • Builds clean in Debug and Release
Original prompt

cleanup the code, make production ready, add test cases, improve reliability and performance


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits November 29, 2025 15:30
Co-authored-by: dlosch <318550+dlosch@users.noreply.github.com>
…nd TargetFrameworkValidator

Co-authored-by: dlosch <318550+dlosch@users.noreply.github.com>
…nd ProjectInfo

Co-authored-by: dlosch <318550+dlosch@users.noreply.github.com>
Copilot AI changed the title [WIP] Clean up code and add test cases for better reliability Add comprehensive test coverage and fix test infrastructure Nov 29, 2025
Copilot AI requested a review from dlosch November 29, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants