Skip to content

Comments

refactor(tests): resolve Windows compatibility issues in integration tests#445

Open
jafin wants to merge 1 commit intombrt:masterfrom
jafin:fix/test-windows
Open

refactor(tests): resolve Windows compatibility issues in integration tests#445
jafin wants to merge 1 commit intombrt:masterfrom
jafin:fix/test-windows

Conversation

@jafin
Copy link
Contributor

@jafin jafin commented Feb 15, 2026

  • Use filepath.Dir instead of path.Dir for proper Windows path handling
  • Add normalizeLineEndings helper for cross-platform line ending comparison
  • Fix ReadFile path argument to avoid double testdata prefix
  • Replace symlink with jsonnet import for Windows compatibility

  - Use filepath.Dir instead of path.Dir for proper Windows path handling
  - Add normalizeLineEndings helper for cross-platform line ending comparison
  - Fix ReadFile path argument to avoid double testdata prefix
  - Replace symlink with jsonnet import for Windows compatibility
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 37.56%. Comparing base (15b0c71) to head (d3e58ac).

Files with missing lines Patch % Lines
internal/engine/config/read.go 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #445   +/-   ##
=======================================
  Coverage   37.56%   37.56%           
=======================================
  Files          54       54           
  Lines        3663     3663           
=======================================
  Hits         1376     1376           
  Misses       2196     2196           
  Partials       91       91           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Owner

@mbrt mbrt left a comment

Choose a reason for hiding this comment

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

Please use WSL for developing, as I don't have a good way to keep tests working on Windows.

t.Run(name, func(t *testing.T) {
// Parse the config.
cfg, err := config.ReadFile(cfgPath, filepath.Join("testdata", cfgPath))
cfg, err := config.ReadFile(cfgPath, cfgPath)
Copy link
Owner

Choose a reason for hiding this comment

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

What's the reason for this change?

Copy link
Owner

@mbrt mbrt Feb 18, 2026

Choose a reason for hiding this comment

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

This makes the tests fail, it seems?

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