Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Test runner that acts like a test and can be run as one

by cxw (Scribe)
on Apr 02, 2020 at 18:31 UTC ( [id://11114959]=note: print w/replies, xml ) Need Help??


in reply to Test runner that acts like a test and can be run as one

Not knowing the details of your tests, I'm not sure if this is directly applicable. However, I can tell you about something similar I've done. In my Class::Tiny::ConstrainedAccessor, I need to run the same tests against about five different upstream modules. I put the tests in a common module. I then have a separate *.t file for each upstream module (each test condition). Each *.t file loads the common module and the upstream module, then passes the upstream to the test runner in the common module (example). The common module does not have a test plan or a done_testing() call, so it fits seamlessly into the framework provided by the *.t file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (None)
    As of 2024-04-25 00:55 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found