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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:37:22+00:00 2026-05-15T02:37:22+00:00

I’m (re)writing a program that does generic unit test scheduling. The current program is

  • 0

I’m (re)writing a program that does generic unit test scheduling. The current program is a mono-threaded Perl program, but I’m willing to modularize it and parallelize the tests. I’m also considering rewriting it in Python.

Here is what I need to do:

  • I have a list of tests, with the following attributes:
    • uri: a URI to test (could be HTTP/HTTPS/SSH/local) ;
    • depends: an associative array of tests/values that this test depends on ;
    • join: a list of DB joints to be added when selecting items to process in this test ;
    • depends_db: additional conditions to add to the DB request when selecting items to process in this test.
  • The program builds a dependency tree, beginning with the tests that have no dependencies ;
  • for each test:
    • a list of items is selected from the database using the conditions (results of depending tests, joints and depends_db) ;
    • the list of items is sent to the URI (using POST or stdin) ;
    • the result is retrived as a YAML file listing the state and comments for the test for each tested item ;
    • the results are stored in the DB ;
    • the test returns, allowing depending tests to be performed.
  • the program generates reports (CSV, DB, graphviz) of the performed tests.

The primary use of this program currently is to test a fleet of machines against services such as backup, DNS, etc. The tests can then be:
– backup: hosted on the backup machine(s), called through HTTP, checks if the machines’ backup went well ;
– DNS: hosted on the local machine, called via stdin, checks if the machines’ fqdn have a valid DNS entry.

Does such a tool/module already exist? What would be the best implementation to achieve this (using Perl or Python)?

  • 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-15T02:37:22+00:00Added an answer on May 15, 2026 at 2:37 am

    This sort of testing is not unit testing.

    If you decide not to follow rjh’s advice in order to keep most of the code you’ve already written, then convert your tests to use the standard test toolchain.

    • Use Test::Class and friends to emit TAP.
    • Use prove‘s -j option or Test::Aggregate to run tests in parallel.
    • Use prove’s -a option or App::Prove::History to record results.
    • Use TAP::Formatter::HTML for graphical reporting.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 472k
  • Answers 472k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I believe you want HTTP handlers. This may be a… May 16, 2026 at 3:42 am
  • Editorial Team
    Editorial Team added an answer I would suppress it in this case, with the reason… May 16, 2026 at 3:42 am
  • Editorial Team
    Editorial Team added an answer Are all of your hotels in the United States? It… May 16, 2026 at 3:42 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.