Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123968
tap.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
tap.js
View Options
/*
Language: Test Anything Protocol
Description: TAP, the Test Anything Protocol, is a simple text-based interface between testing modules in a test harness.
Requires: yaml.js
Author: Sergey Bronnikov <sergeyb@bronevichok.ru>
Website: https://testanything.org
*/
function
tap
(
hljs
)
{
return
{
name
:
'Test Anything Protocol'
,
case_insensitive
:
true
,
contains
:
[
hljs
.
HASH_COMMENT_MODE
,
// version of format and total amount of testcases
{
className
:
'meta'
,
variants
:
[
{
begin
:
'^TAP version (\\d+)$'
},
{
begin
:
'^1\\.\\.(\\d+)$'
}
]
},
// YAML block
{
begin
:
/---$/
,
end
:
'\\.\\.\\.$'
,
subLanguage
:
'yaml'
,
relevance
:
0
},
// testcase number
{
className
:
'number'
,
begin
:
' (\\d+) '
},
// testcase status and description
{
className
:
'symbol'
,
variants
:
[
{
begin
:
'^ok'
},
{
begin
:
'^not ok'
}
]
}
]
};
}
module
.
exports
=
tap
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 6:28 PM (2 w, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3347835
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment