commit
7f7e80f3bc
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"id": "prove_cheat_sheet",
|
||||
"name": "prove",
|
||||
"description": "Perl test runner for the Test Anything Protocol (TAP)",
|
||||
"metadata": {
|
||||
"sourceName": "PerlDoc",
|
||||
"sourceUrl": "http://perldoc.perl.org/prove.html"
|
||||
},
|
||||
"template_type": "terminal",
|
||||
"section_order": ["Usage", "Options", "Examples"],
|
||||
"sections": {
|
||||
"Usage": [{
|
||||
"key": "prove \\[option\\] \\[filepath\\]",
|
||||
"val": "start prove"
|
||||
}],
|
||||
"Options": [{
|
||||
"key": "-I<filepath>",
|
||||
"val": "include this filepath"
|
||||
}, {
|
||||
"key": "-l",
|
||||
"val": "include ./lib"
|
||||
}, {
|
||||
"key": "-r",
|
||||
"val": "recursively exec test files"
|
||||
}, {
|
||||
"key": "-j <n>",
|
||||
"val": "number of jobs in parallel"
|
||||
}, {
|
||||
"key": "-v",
|
||||
"val": "verbose output"
|
||||
}, {
|
||||
"key": "-h",
|
||||
"val": "display help text"
|
||||
}, {
|
||||
"key": "--exec <program>",
|
||||
"val": "run tests with another program (not Perl)"
|
||||
}],
|
||||
"Examples": [{
|
||||
"key": "prove -lr",
|
||||
"val": "Run all *.t tests in t/"
|
||||
}, {
|
||||
"key": "prove -l t/01-Basics.t",
|
||||
"val": "Run the t/01-Basics.t test file"
|
||||
}, {
|
||||
"key": "prove -lrv",
|
||||
"val": "Run all *.t tests in t/ with verbose output"
|
||||
}, {
|
||||
"key": "prove -lr -j 4",
|
||||
"val": "Run all *.t tests in t/ with 4 processes"
|
||||
}, {
|
||||
"key": "prove -r /test-dir",
|
||||
"val": "Run all *.t tests in /test-dir"
|
||||
}, {
|
||||
"key": "prove --exec perl6 test-dir/",
|
||||
"val": "Run all *.t tests in test-dir/ with perl6"
|
||||
}, {
|
||||
"key": "prove -h",
|
||||
"val": "Display help page"
|
||||
}]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue