[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sensitivity vs. specificity in software testing (was: [PATCH] fix for gr
From: |
G. Branden Robinson |
Subject: |
sensitivity vs. specificity in software testing (was: [PATCH] fix for groff Git regression (Savannah #64005)) |
Date: |
Thu, 6 Apr 2023 20:44:41 -0500 |
Hi Ralph,
At 2023-04-06T12:59:57+0100, Ralph Corderoy wrote:
[snip]
> Would it be worth testing all of $output is exactly as expected? This
> would widen what's being tested which may catch a future regression
> outside the scope of this test, e.g. with .DS/.DE. The downside is a
> deliberate change might ripple through more tests but the fix-up
> should be straightforward and would preserve the wider testing.
I see the value in both approaches. On the one hand I like the idea of
detecting inadvertent changes to vertical spacing (or anything else) in
a document, but on the other, I find narrowly scoped regression tests to
be advantageous.
> output=\
> ',,,,,,The first page is 1.,, display,,,,,,,,,
> ,,, -2-,,,The second page is 2.
> '
> output=$(echo "$output" | tr , \\012)
This is a good suggestion for handling blank line-happy output, of which
we have quite a bit in groff.
I think maybe the best-of-both-worlds solution is to have a model
document-based automated test--perhaps one that exercises as many ms(7)
macros as possible. That would permit the retention of the narrow scope
of regression tests aimed at specific bugs, which necessarily tell you
something specific when they fail, but would add the highly sensitive
Rumsfeldian "unknown unknowns" problem detection that I think your
suggestion is tuned to.
Regards,
Branden
signature.asc
Description: PGP signature
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, (continued)
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, G. Branden Robinson, 2023/04/04
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, Michał Kruszewski, 2023/04/05
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, G. Branden Robinson, 2023/04/05
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, Michał Kruszewski, 2023/04/05
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, G. Branden Robinson, 2023/04/05
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, Michał Kruszewski, 2023/04/05
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, Dave Kemper, 2023/04/05
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, G. Branden Robinson, 2023/04/05
- [PATCH] fix for groff Git regression (Savannah #64005), G. Branden Robinson, 2023/04/05
- [PATCH] fix for groff Git regression (Savannah #64005), Ralph Corderoy, 2023/04/06
- sensitivity vs. specificity in software testing (was: [PATCH] fix for groff Git regression (Savannah #64005)),
G. Branden Robinson <=
- sensitivity vs. specificity in software testing, Ralph Corderoy, 2023/04/07
- Re: sensitivity vs. specificity in software testing, G. Branden Robinson, 2023/04/07
- Re: sensitivity vs. specificity in software testing, Ralph Corderoy, 2023/04/08
- Re: sensitivity vs. specificity in software testing, G. Branden Robinson, 2023/04/09
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, Peter Schaffter, 2023/04/05
- Re: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4, Michał Kruszewski, 2023/04/05
- an opinionated history of *roff macro packages (was: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4), G. Branden Robinson, 2023/04/06
- Re: an opinionated history of *roff macro packages (was: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4), Damian McGuckin, 2023/04/06
- memorandum macros (mm) in 1976/77 (was: an opinionated history of *roff macro packages), G. Branden Robinson, 2023/04/06
- Re: memorandum macros (mm) in 1976/77 (was: an opinionated history of *roff macro packages), Damian McGuckin, 2023/04/06