Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

by Anonymous Monk
on Sep 25, 2012 at 00:30 UTC ( #995466=note: print w/replies, xml ) Need Help??

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

| If you really want to use prove then perhaps modify your test file to read its options from environment variables instead.


Thanks, I may have to resort to this method. I appreciate the time both of you spent is drawing out the fundamental problem.

  • Comment on Re^4: Test::More command-line arguments?

Replies are listed 'Best First'.
Re^5: Test::More command-line arguments?
by Anonymous Monk on Sep 25, 2012 at 00:38 UTC

    Well, your tests shouldn't need arguments :)

    If you need to database connection details, traditional solution is to either use env vars ( along the lines of TEST_MYSQL_USER TEST_MYSQL_PASS ... or TEST_MYSQL_DSN )

    Of via distribution config file , which your tests know how to read

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995466]
[Corion]: marto: A rough week comes to an end?
Corion has to finish off some test tickets and hopefully close them. Also I have to prepare some information for the tax people on the weekend :-/
[marto]: it feels like 2 weeks :)
[Discipulus]: sane dots for your weekend marto!
[choroba]: My week was hectic as well, and so will be the next several ones...
[Corion]: Sane Dots Supplies - your brand manufacturer for satisfying experiences!
[choroba]: preparing the trip to Vietnam + buying a new car = enough fun

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-01-20 10:11 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (174 votes). Check out past polls.