Hi Monks,
I have written some test scripts using the module Test::More, But now I want to run those test scripts with Test::Harness;
Here the problem is that I need to pass an option with each test scripts. For example: perl testSctipt1.t -d 20100419.
use strict;
use warnings;
use Test::Harness;
my @tests = ("testScript1 -d 20091201", "testScript2.t -d 20091211");
runtests(@tests);
Here I get ERROR like
Cannot detect source of 't/parse_df_a.t -a 2009120106050016'! at /usr/bin//perl5.10.0/lib/5.10.0/TAP/Parser/IteratorFactory.pm line 263
TAP::Parser::IteratorFactory::detect_source('TAP::Parser::IteratorFactory=HASH(0xb38cf0)', 'TAP::Parser::Source=HASH(0xb427c8)') called at /usr/bin/perl5.10.0/lib/5.10.0/TAP/Parser/IteratorFactory.pm line 213
And I knew that this is because that, I am passing the an option with the each test scripts and due to this I am getting such Error.
So please let me know any one how can i run the test scripts with Harness by passing some values with each test scripts.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.