Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing a test?

I primarily spend my time working on automated tests of win32 and .NET applications, which take about 30% of our time to write and 70% to maintain. We have been looking into methods of reducing the maintenance times, and have already moved to a reusable test library that covers most of the key components of our software. In addition we have some work in progress to get our library to a state where we can use keyword based testing.

I have been considering unit testing our test library, but I'm wondering if it would be worth the time. I'm a strong proponent of unit testing of software, but I'm not sure how to handle test code.

Do you think automated Gui testing libraries should be unit tested? Or is it just a waste of time?

like image 906
chills42 Avatar asked Feb 03 '09 13:02

chills42


People also ask

What does Ag+ mean?

ART positive result is termed “Ag+”; Two consecutive ART invalid results is termed “re-tested Ag invalid”. 1. Who should undertake the ART test?

How long will I test positive for Covid after having it?

After a positive test result, you may continue to test positive for some time after. You may continue to test positive on antigen tests for a few weeks after your initial positive. You may continue to test positive on NAATs for up to 90 days.

What a positive test looks like?

Two lines – even faint lines – indicate the test is positive.

How long are you contagious with Omicron?

We know that people tend to be most infectious early in the course of their infection. With Omicron, most transmission occurs during the one to two days before onset of symptoms, and in the two to three days afterwards.


1 Answers

First of all I've found it very useful to look at unit-test as "executable specifications" instead of tests. I write down what I want my code to do and then implement it. Most of the benefits I get from writing unit tests is that they drive the implementation process and focus my thinking. The fact that they're reusable to test my code is almost a happy coincidence.

Testing tests seems just a way to move the problem instead of solving it. Who is going to test the tests that test the tests? The 'trick' that TDD uses to make sure tests are actually useful is by making them fail first. This might be something you can use here too. Write the test, see it fail, then fix the code.

like image 63
Mendelt Avatar answered Oct 06 '22 16:10

Mendelt