-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9pm.py: add new AsciiDoc test report
- Loading branch information
Showing
18 changed files
with
357 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
=== Bash Example | ||
==== Description | ||
An example of how to create a 9pm test case by printing TAP from Python. | ||
|
||
This test specification has the same name as the testcase but with the .adoc extension. | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sed auctor ipsum. Sed pharetra vestibulum leo, ac vulputate odio tristique eget. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed dictum, est ut elementum bibendum, velit odio feugiat ante, et posuere metus erat a nulla. Curabitur lacinia vel lacus in feugiat. Integer pulvinar vestibulum felis et vehicula. Sed facilisis turpis eget felis cursus feugiat. Quisque sodales mauris id sapien viverra, in suscipit arcu aliquet. Vestibulum porttitor aliquam arcu mattis efficitur. In hac habitasse platea dictumst. Vivamus aliquet pretium dolor, ut imperdiet ligula tristique vel. Interdum et malesuada fames ac ante ipsum primis in faucibus. | ||
|
||
==== Topology | ||
Localhost only. | ||
|
||
==== Test sequence | ||
. Lorem ipsum dolor sit amet | ||
. Consectetur adipiscing elit | ||
. Sed do eiusmod tempor incididunt | ||
. Ut labore et dolore magna aliqua | ||
. Excepteur sint occaecat cupidatat non proident | ||
|
||
<<< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Output TAP (Test Anything Protocol) Plan | ||
echo "1..1" | ||
|
||
echo "not ok 1 - Fail to trigger on-fail script named in suite" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "Hi from cleanup.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
=== Perl Example | ||
==== Description | ||
An example of how to create a 9pm test case by printing TAP from Perl. | ||
|
||
This test specification is named Readme.adoc and is located in the same directory as test.pl. | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sed auctor ipsum. Sed pharetra vestibulum leo, ac vulputate odio tristique eget. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed dictum, est ut elementum bibendum, velit odio feugiat ante, et posuere metus erat a nulla. Curabitur lacinia vel lacus in feugiat. Integer pulvinar vestibulum felis et vehicula. Sed facilisis turpis eget felis cursus feugiat. Quisque sodales mauris id sapien viverra, in suscipit arcu aliquet. Vestibulum porttitor aliquam arcu mattis efficitur. In hac habitasse platea dictumst. Vivamus aliquet pretium dolor, ut imperdiet ligula tristique vel. Interdum et malesuada fames ac ante ipsum primis in faucibus. | ||
|
||
==== Topology | ||
Localhost only. | ||
|
||
==== Test sequence | ||
. Lorem ipsum dolor sit amet | ||
. Consectetur adipiscing elit | ||
. Sed do eiusmod tempor incididunt | ||
. Ut labore et dolore magna aliqua | ||
. Excepteur sint occaecat cupidatat non proident | ||
|
||
<<< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/perl | ||
|
||
print "1..1\n"; | ||
|
||
print "ok 1 - A good result from Perl\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
=== Python Example | ||
==== Description | ||
An example of how to create a 9pm test case by printing TAP from Python. | ||
|
||
This test specification has the same name as the testcase but with the .adoc extension. | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sed auctor ipsum. Sed pharetra vestibulum leo, ac vulputate odio tristique eget. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed dictum, est ut elementum bibendum, velit odio feugiat ante, et posuere metus erat a nulla. Curabitur lacinia vel lacus in feugiat. Integer pulvinar vestibulum felis et vehicula. Sed facilisis turpis eget felis cursus feugiat. Quisque sodales mauris id sapien viverra, in suscipit arcu aliquet. Vestibulum porttitor aliquam arcu mattis efficitur. In hac habitasse platea dictumst. Vivamus aliquet pretium dolor, ut imperdiet ligula tristique vel. Interdum et malesuada fames ac ante ipsum primis in faucibus. | ||
|
||
==== Topology | ||
Localhost only. | ||
|
||
==== Test sequence | ||
. Lorem ipsum dolor sit amet | ||
. Consectetur adipiscing elit | ||
. Sed do eiusmod tempor incididunt | ||
. Ut labore et dolore magna aliqua | ||
. Excepteur sint occaecat cupidatat non proident | ||
|
||
<<< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
--- | ||
- settings: | ||
test-spec: Readme.adoc | ||
|
||
- case: "../cases/bash.sh" | ||
name: "bash-in-nested" | ||
opts: | ||
- "opt-from-nested" | ||
|
||
- case: "../cases/python.py" | ||
name: "python-in-nested" | ||
- case: "../cases/perl/test.pl" | ||
name: "perl-in-nested" | ||
opts: | ||
- "opt-from-nested" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
extends: default | ||
font: | ||
catalog: | ||
merge: true | ||
SourceCodePro: | ||
normal: SourceCodePro-Regular.ttf | ||
bold: SourceCodePro-Bold.ttf | ||
italic: SourceCodePro-Italic.ttf | ||
bold-italic: SourceCodePro-BoldItalic.ttf | ||
|
||
base: | ||
font-family: SourceCodePro | ||
font-size: 10 | ||
line-height-length: 1.3 | ||
font-color: #1f2937 | ||
|
||
code: | ||
background-color: #ffffff | ||
border-color: #ffffff | ||
|
||
heading: | ||
font-family: SourceCodePro | ||
font-style: bold | ||
|
||
role: | ||
underline: | ||
text-decoration: underline | ||
pass: | ||
font-color: #14532d | ||
font-style: bold | ||
fail: | ||
font-color: #b91c1c | ||
font-style: bold | ||
skip: | ||
font-color: #eab308 | ||
font-style: bold | ||
|
||
link: | ||
font-color: #1f2937 | ||
text-decoration: underline | ||
|
||
heading-h1: | ||
font-size: 24 | ||
|
||
heading-h2: | ||
font-size: 18 | ||
|
||
heading-h3: | ||
font-size: 12 | ||
margin-top: 30 | ||
text-decoration: underline | ||
|
||
heading-h4: | ||
font-size: 11 |
Oops, something went wrong.