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

  • Home
  • SEARCH
  • 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 1042939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:35:14+00:00 2026-05-16T15:35:14+00:00

I use Test::Unit::Lite for unit testing in Perl. Now, this module looks for .pm

  • 0

I use Test::Unit::Lite for unit testing in Perl. Now, this module looks for .pm files in t/tlib. However, I have several tests for the project and I would like to separate them in folders like: t/tlib/Unit_Tests/…pm, t/tlib/Functional_Tests/…pm and so on.

How can I tell to the unit test module to look for files in subdirectories of t/tlib. Right now, if I make some directories there, it just ignores them.

  • 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-16T15:35:15+00:00Added an answer on May 16, 2026 at 3:35 pm

    So … I found out the answer … In the .pm testfiles in the subdirectories you have to name the package accordingly.

    For example:

    Folder: t/tlib/Unit
    File: t/tlib/Unit/MyTest.pm
    
    MyTest.pm must contain:
    package Unit::MyTest.pm
    

    Note the “Unit::” part, which is the subdirectory name where your test is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following file: #!/usr/bin/perl use Test::Unit::TestCase; $self->assert(1) and when I run test.pl
A question about how to use test-mvc for unit testing. I have a simple
I use Microsoft Visual Studio test Tools assembly for unit testing. And from one
I use Zend_Test for unit testing in Zend Framework. I have configured the bootstrap
Using ActiveSupport::TestCase. I think that's the old Test::Unit. I have several tables that represent
I'm trying to use Test::More to unit test Perl functions that print to the
I have a number of test suites that make use of the Test::Unit::TestCase package
I use this command to run a unit test in rails: $ ruby -Itest
I have installed ruby-prof and test-unit as i am planning to use a ruby
I am getting this error when running some unit tests (using the Test::Unit module

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.