Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6055129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:13:48+00:00 2026-05-23T08:13:48+00:00

I am using TAP::Harness in perl like this: $harness = TAP::Harness->new({ formatter_class => ‘TAP::Formatter::Console’,

  • 0

I am using TAP::Harness in perl like this:

$harness = TAP::Harness->new({
        formatter_class => 'TAP::Formatter::Console',
        merge => 1,
        verbosity => 1,
        normalize => 1,
        color => 1,
        test_args => ['--url', $url, '--session', $session],
    });

Sometime later I call $harness->runtests(), passing an array of several tests.

Problem is, in all of my tests:

use Data::Dumper;
print Dumper \@ARGV;

Outputs:

$VAR1 = [];

Does test_args not come out in @ARGV in the underlying tests? I need to pass some options through to each test.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:13:49+00:00Added an answer on May 23, 2026 at 8:13 am

    Does your initialization work? I had to pass hashref to the constuctor to make it work:

    use TAP::Harness;
    
    $harness = TAP::Harness->new({
        formatter_class => 'TAP::Formatter::Console',
        merge           => 1,
        verbosity       => 1,
        normalize       => 1,
        color           => 1,
        test_args       => ['--url', $url, '--session', $session],
    });
    
    $harness->runtests('simple.t');
    

    In the test simple.t:

    use Test::More;
    use Data::Dump qw(dump);
    
    dump [@ARGV];    # prints ["--url", "", "--session", ""]
    
    done_testing;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I run some TAP Tests using TAP::Formatter::HTML. This CPAN module generates beautiful dynamic HTML
I ran in to an interesting problem while using the 'tap' method on objects
I'm using a RSS Reader and works fine when I tap the UITableViewCell to
I've been trying to send packets to a tap interface using python. I'm monitoring
I'm using the standard onCreateOptionsMenu, but on my Nexus w/ICS, when I tap the
I am using a UITableView in my app. After scrolling down, if I tap
I want to recognize a big tap on the iPhone back using accelerometer? How
Given a perl module Foo.pm with methods aSub() and bSub() my $obj = Foo->new();
using this code: <h2 id=status> 0, 0 </h2> <script type=text/javascript> $('html').mousemove(function(e){ $('#status').html(e.pageX +', '+
I am using myWebview.getSettings().setBuiltInZoomControls(true); to set zoom controls on my webview. I realize this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.