Mozilla

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • regression testing

    8 answers - 698 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Darin Fisher wrote:
    I believe that the Mozilla project suffers from in-adequate regression
    and unit testing. We have difficult making large, impactful changes
    with confidence.
    Actually, I think we've done surprisingly well at making a large number
    of large, impactful changes.
    I think that we should try to reach a point where we can require
    regression/unit tests for every patch that fixes a bug or introduces a
    new API.
    Sounds good to me. Sounds even better if this leverages QA
    staff/community volunteers with a minimum burden on developers :-)
    Rob
    dev-planning mailing list
    dev-planning (AT) lists (DOT) mozilla.org
  • No.1 | | 876 bytes | |

    Robert 'Callahan wrote:
    Darin Fisher wrote:
    >I think that we should try to reach a point where we can require
    >regression/unit tests for every patch that fixes a bug or introduces a
    >new API.


    Sounds good to me. Sounds even better if this leverages QA
    staff/community volunteers with a minimum burden on developers :-)

    I've never seen that work. The only thing I've seen work is when the
    developers are responsible for writing the bulk of the automated tests.

    Developers are not as likely to write testable code if they are not the
    ones experiencing the pain of writing tests for that code.

    QA staff and community volunteers should be writing additional tests,
    and tests of a different type than those written by developers. But
    developers need to step up and write tests.
  • No.2 | | 876 bytes | |

    Robert 'Callahan wrote:
    Darin Fisher wrote:
    >I think that we should try to reach a point where we can require
    >regression/unit tests for every patch that fixes a bug or introduces a
    >new API.


    Sounds good to me. Sounds even better if this leverages QA
    staff/community volunteers with a minimum burden on developers :-)

    I've never seen that work. The only thing I've seen work is when the
    developers are responsible for writing the bulk of the automated tests.

    Developers are not as likely to write testable code if they are not the
    ones experiencing the pain of writing tests for that code.

    QA staff and community volunteers should be writing additional tests,
    and tests of a different type than those written by developers. But
    developers need to step up and write tests.
  • No.3 | | 1513 bytes | |

    Dave Liebreich wrote:
    Robert 'Callahan wrote:
    >Darin Fisher wrote:

    I think that we should try to reach a point where we can require
    regression/unit tests for every patch that fixes a bug or introduces a
    new API.
    >>

    >Sounds good to me. Sounds even better if this leverages QA
    >staff/community volunteers with a minimum burden on developers :-)


    I've never seen that work. The only thing I've seen work is when the
    developers are responsible for writing the bulk of the automated tests.

    Developers are not as likely to write testable code if they are not the
    ones experiencing the pain of writing tests for that code.

    When you say "tests" I'm not sure if you mean test cases or test
    automation. Developers must support test automation. But for layout and
    rendering code, at least, a single framework can test all kinds of
    content, including new kinds of content, so we don't necessarily need to
    do anything to make it "testable".

    If you mean specifically test cases, then I have to say that I've met
    several Mozilla QA volunteers and staff who are far better at writing
    test cases than I am. Not to mention the fact that most of the bugs that
    I fix come have decent test cases attached before I look at them.

    Rob

    dev-quality mailing list
    dev-quality (AT) lists (DOT) mozilla.org
  • No.4 | | 1515 bytes | |

    Dave Liebreich wrote:
    Robert 'Callahan wrote:
    >Darin Fisher wrote:

    I think that we should try to reach a point where we can require
    regression/unit tests for every patch that fixes a bug or introduces a
    new API.
    >>

    >Sounds good to me. Sounds even better if this leverages QA
    >staff/community volunteers with a minimum burden on developers :-)


    I've never seen that work. The only thing I've seen work is when the
    developers are responsible for writing the bulk of the automated tests.

    Developers are not as likely to write testable code if they are not the
    ones experiencing the pain of writing tests for that code.

    When you say "tests" I'm not sure if you mean test cases or test
    automation. Developers must support test automation. But for layout and
    rendering code, at least, a single framework can test all kinds of
    content, including new kinds of content, so we don't necessarily need to
    do anything to make it "testable".

    If you mean specifically test cases, then I have to say that I've met
    several Mozilla QA volunteers and staff who are far better at writing
    test cases than I am. Not to mention the fact that most of the bugs that
    I fix come have decent test cases attached before I look at them.

    Rob

    dev-planning mailing list
    dev-planning (AT) lists (DOT) mozilla.org
  • No.5 | | 1471 bytes | |

    Friday 2006-06-23 12:07 +1200, Robert 'Callahan wrote:
    When you say "tests" I'm not sure if you mean test cases or test
    automation. Developers must support test automation. But for layout and
    rendering code, at least, a single framework can test all kinds of
    content, including new kinds of content, so we don't necessarily need to
    do anything to make it "testable".

    If you mean specifically test cases, then I have to say that I've met
    several Mozilla QA volunteers and staff who are far better at writing
    test cases than I am. Not to mention the fact that most of the bugs that
    I fix come have decent test cases attached before I look at them.

    FWIW (sort of related): thing that occurred to me today is that one
    way to write layout and CSS regression tests that *don't* require a
    baseline run without the developer's changes is to have tests where the
    reference rendering is also in HTML. Many of Hixie's tests could have a
    simple reference rendering written in HTML that would be independent of
    the operating system, the user's fonts, and even of many changes in our
    default behavior (e.g., changing the ua.css margin on BDY or other such
    trivial changes that would require a completely new baseline).

    Tests of this type would be easier to hook up to something like
    tinderbox that can go red if the tests fail, although they are harder to
    write.
    -David
  • No.6 | | 1471 bytes | |

    Friday 2006-06-23 12:07 +1200, Robert 'Callahan wrote:
    When you say "tests" I'm not sure if you mean test cases or test
    automation. Developers must support test automation. But for layout and
    rendering code, at least, a single framework can test all kinds of
    content, including new kinds of content, so we don't necessarily need to
    do anything to make it "testable".

    If you mean specifically test cases, then I have to say that I've met
    several Mozilla QA volunteers and staff who are far better at writing
    test cases than I am. Not to mention the fact that most of the bugs that
    I fix come have decent test cases attached before I look at them.

    FWIW (sort of related): thing that occurred to me today is that one
    way to write layout and CSS regression tests that *don't* require a
    baseline run without the developer's changes is to have tests where the
    reference rendering is also in HTML. Many of Hixie's tests could have a
    simple reference rendering written in HTML that would be independent of
    the operating system, the user's fonts, and even of many changes in our
    default behavior (e.g., changing the ua.css margin on BDY or other such
    trivial changes that would require a completely new baseline).

    Tests of this type would be easier to hook up to something like
    tinderbox that can go red if the tests fail, although they are harder to
    write.
    -David
  • No.7 | | 1185 bytes | |

    Robert 'Callahan wrote:
    If you mean specifically test cases, then I have to say that I've met
    several Mozilla QA volunteers and staff who are far better at writing
    test cases than I am. Not to mention the fact that most of the bugs that
    I fix come have decent test cases attached before I look at them.

    It seems to me that there are really two different kinds of test cases
    relevant here. There are the layout test cases on the one hand, and unit
    tests for most other modules on the other hand.

    For layout, all you really need is input, you don't actually write the
    test. You just compare before and after (which is, incidentally, a
    problem in this algorithm, because it doesn't tell you whether the
    testcase is correct, only that it didn't change)

    But for other modules, you can't just provide input -- you usually want
    to test an API, that it does what it should, that it doesn't crash, etc.
    So you need to write some code to do that.

    I don't think these two kinds can be considered the same

    dev-quality mailing list
    dev-quality (AT) lists (DOT) mozilla.org
  • No.8 | | 1187 bytes | |

    Robert 'Callahan wrote:
    If you mean specifically test cases, then I have to say that I've met
    several Mozilla QA volunteers and staff who are far better at writing
    test cases than I am. Not to mention the fact that most of the bugs that
    I fix come have decent test cases attached before I look at them.

    It seems to me that there are really two different kinds of test cases
    relevant here. There are the layout test cases on the one hand, and unit
    tests for most other modules on the other hand.

    For layout, all you really need is input, you don't actually write the
    test. You just compare before and after (which is, incidentally, a
    problem in this algorithm, because it doesn't tell you whether the
    testcase is correct, only that it didn't change)

    But for other modules, you can't just provide input -- you usually want
    to test an API, that it does what it should, that it doesn't crash, etc.
    So you need to write some code to do that.

    I don't think these two kinds can be considered the same

    dev-planning mailing list
    dev-planning (AT) lists (DOT) mozilla.org

Re: regression testing


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Mozilla"

EMSDN.COM