Language Agnostic Build Management System

前端 未结 6 1420
無奈伤痛
無奈伤痛 2021-02-10 02:58

Several times in my career, I have worked in a software group that determined that

a) We needed a build/test system
b) We should write our own
c) We can have a

6条回答
  •  执笔经年
    2021-02-10 03:41

    I would recommend that if you are going to write a testing system that you consider using the Test Anything Protocol. TAP has been in use for 20+ years, and widely used, especially for CPAN modules.

    TAP's general format is:

    1..N
    ok 1 Description # Directive
    # Diagnostic
    ....
    ok 47 Description
    ok 48 Description
    more tests....
    

    For example, a test file's output might look like:

    1..4
    ok 1 - Input file opened
    not ok 2 - First line of the input valid
    ok 3 - Read the rest of the file
    not ok 4 - Summarized correctly # TODO Not written yet
    

    Go to testanything.org for more information.

    The examples are copied from http://en.wikipedia.org/wiki/Test_Anything_Protocol

提交回复
热议问题