Skip to content

test: account for 0.109.2+ (nightly) assert/error format changes#14

Merged
vyadh merged 1 commit into
mainfrom
fix-tests-on-nightly
Dec 26, 2025
Merged

test: account for 0.109.2+ (nightly) assert/error format changes#14
vyadh merged 1 commit into
mainfrom
fix-tests-on-nightly

Conversation

@vyadh

@vyadh vyadh commented Dec 26, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 26, 2025 13:28
@github-actions

github-actions Bot commented Dec 26, 2025

Copy link
Copy Markdown

Test Results

  1 files  +  1   16 suites  +16   0s ⏱️ ±0s
122 tests +122  118 ✅ +118  4 💤 +4  0 ❌ ±0 
122 runs  +122  114 ✅ +114  8 💤 +8  0 ❌ ±0 

Results for commit 2267c73. ± Comparison against base commit 667d77d.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates tests to accommodate assertion and error message format changes introduced in Nushell version 0.109.2+ (nightly builds). The changes ensure that the test framework correctly handles the new compact error format while maintaining backward compatibility with earlier versions.

Key Changes:

  • Removes assertion check for "Assertion failed." text that is no longer present in newer Nushell versions
  • Adds version detection to skip tests for compact assertion formatting when running on 0.109.2+
  • Updates error formatter to skip compact formatting logic when running on versions where messages are already compact

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/test_orchestrator.nu Removes check for "Assertion failed." text from test output assertion
tests/display/test_display_table_errors.nu Adds early return logic to skip compact assertion test on 0.109.2+
nutest/formatter.nu Adds version check to conditionally apply compact formatting based on Nushell version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/display/test_display_table_errors.nu
Comment thread nutest/formatter.nu
Comment thread tests/display/test_display_table_errors.nu
@vyadh vyadh marked this pull request as ready for review December 26, 2025 13:41
@vyadh vyadh self-assigned this Dec 26, 2025
@vyadh vyadh merged commit 2267c73 into main Dec 26, 2025
70 of 71 checks passed
@vyadh vyadh deleted the fix-tests-on-nightly branch December 26, 2025 13:43
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