Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Test::More command-line arguments?

by Anonymous Monk
on Sep 25, 2012 at 00:22 UTC ( [id://995464]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Test::More command-line arguments?
in thread Test::More command-line arguments?

Okay, I see part of my error. If I run the script directly through the interpreter, I get results:
$ perl t.t one two three 1..1 $ARGV = [ 'one', 'two', 'three' ]; ok 1 - placeholder $
...but is there a way I can pass command-line arguments if I use prove instead? I would like to have the statistics prove provides if possible.

Replies are listed 'Best First'.
Re^4: Test::More command-line arguments?
by sbohning (Initiate) on Oct 14, 2021 at 21:39 UTC

    from prove - Run tests through a TAP harness

    Arguments to Tests

    It is possible to supply arguments to tests. To do so separate them from prove's own arguments with the arisdottle, '::'. For example

    prove -v t/mytest.t :: --url http://example.com

    would run t/mytest.t with the options '--url http://example.com'. When running multiple tests they will each receive the same arguments.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://995464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-07-16 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.