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 8850521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:55:21+00:00 2026-06-14T12:55:21+00:00

As a hobby project I’m developing a small Bash unit testing framework. Now that

  • 0

As a hobby project I’m developing a small Bash unit testing framework. Now that the basic features are implemented the next step would be to write tests for it.

But how do I test my framework using the framework itself?

I’ve tried to Google an answer to this question but wasn’t able to find anything about this subject.

The idea I’ve come up with so far is writing tests for some trivial things which make use of all the features of the testing framework itself. If the tests are all green, then fine. These basic test could also serve as some sort of documentation.

But I don’t know if this is actually a good approach.

  • 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-06-14T12:55:22+00:00Added an answer on June 14, 2026 at 12:55 pm

    The problem will be to test that tests can fail. Unit tests should all be “green”. So choosing some tests that need to fail to prove it right is not an option.

    I think that the solution will be quiet technology based. It is hard to give general advise about “unit testing a test framework”. Which parts belong to the framework? A part that reads files that contain unit tests, a part that runs them, a part that writes some report, a library of helpers, like asserts, … ?

    You need to split these parts and make it possible to run them in isolation. Then it is no difference as any other tests.

    Probably you find a way to run the whole testrunner within unit tests. This wouldn’t be unit tests as such, but rather integration tests. This kind of tests may become a maintenance problem, because they are usually very complex, use the file system and other stuff from the operation system which shouldn’t be used by unit tests. Consider if this is worth the effort.

    There is always a part that can’t be tested. The part that puts everything together and runs the application (whatever it is) in a real environment. There is no difference here. It is even easier, because some of the “end user environment” can be tested by “green” tests.

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

Sidebar

Related Questions

I'm currently developing a small hobby project (open sourced at https://github.com/grav/mailbum ) which quite
I would like start with .NET Micro Framework as my hobby project. What hardware
as a small (large) hobby project I've set out to make a (very primitive)
I was reading on web2py framework for a hobby project of mine I am
I have a hobby project that includes me driving a LCD by my serial
I have a hobby project that is written in C# using MonoDevelop. I've been
I'm writing a hobby project wherein I write to .wav files. I decided that
I'm thinking about starting a crazy enough hobby project that would span across several
I'm developing custom serializer as hobby project and I would like learn the TDD
I am working on a simple hobby project that checks when users connect/disconnect from

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.