Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 28, 2025

Test failure due to script_fails being called but not imported from Test::Script.

Changes

  • Added script_fails to the explicit import list in t/ot.t line 5
  • Updated .gitignore to exclude standard Perl build artifacts

When an explicit import list is provided to use Test::Script qw(...), only those functions are imported, overriding default exports. The test was calling script_fails() on line 46 without importing it:

# Before
use Test::Script qw( script_runs script_stdout_is );

# After  
use Test::Script qw( script_runs script_stdout_is script_fails );

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cpanmin.us
    • Triggering command: curl -L REDACTED (dns block)
  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>script_fails() test failure</issue_title>
<issue_description> # Failed test 'No tests run for subtest "json with details"'

at t/ot.t line 52.

Undefined subroutine &main::script_fails called at t/ot.t line 46.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 255 just after 3.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix script_fails() test failure Add script_fails to Test::Script import list in t/ot.t Oct 28, 2025
Copilot AI requested a review from oalders October 28, 2025 02:22
Copilot finished work on behalf of oalders October 28, 2025 02:22
@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.44%. Comparing base (11a0dc7) to head (2128843).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #60   +/-   ##
=======================================
  Coverage   89.44%   89.44%           
=======================================
  Files           1        1           
  Lines         161      161           
  Branches       56       56           
=======================================
  Hits          144      144           
  Misses          5        5           
  Partials       12       12           

☔ 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.

Copilot AI and others added 4 commits October 28, 2025 02:42
Co-authored-by: oalders <96205+oalders@users.noreply.github.com>
Co-authored-by: oalders <96205+oalders@users.noreply.github.com>
@oalders oalders force-pushed the copilot/fix-script-fails-test branch from 5d7f139 to a13e83d Compare October 28, 2025 02:50
@oalders oalders marked this pull request as ready for review October 28, 2025 17:14
@oalders oalders merged commit 05982b3 into main Oct 28, 2025
39 checks passed
@oalders oalders deleted the copilot/fix-script-fails-test branch October 28, 2025 17:15
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.

script_fails() test failure

2 participants