GitHub
Preparing search index...
The search index is not available
cucumber-js
@cucumber/cucumber
(root)
JsonFormatter
Class JsonFormatter
Hierarchy
Formatter
JsonFormatter
Index
Constructors
constructor
Properties
color
Fns
cwd
event
Data
Collector
log
print
Attachments
snippet
Builder
stream
support
Code
Library
documentation
Methods
convert
Name
To
Id
finished
format
Data
Table
format
Doc
String
format
Scenario
Id
format
Step
Argument
get
Feature
Data
get
Feature
Tags
get
Scenario
Data
get
Scenario
Tag
get
Scenario
Tags
get
Step
Data
on
Test
Run
Finished
Constructors
constructor
new
Json
Formatter
(
options
)
:
JsonFormatter
Parameters
options
:
IFormatterOptions
Returns
JsonFormatter
Properties
Protected
color
Fns
color
Fns
:
IColorFns
Protected
cwd
cwd
:
string
Protected
event
Data
Collector
event
Data
Collector
:
EventDataCollector
Protected
log
log
:
IFormatterLogFn
Protected
print
Attachments
print
Attachments
:
boolean
Protected
snippet
Builder
snippet
Builder
:
default
Protected
stream
stream
:
Writable
Protected
support
Code
Library
support
Code
Library
:
SupportCodeLibrary
Static
Readonly
documentation
documentation
:
string
= 'Prints the feature as JSON. The JSON format is in maintenance mode. Please consider using the message formatter with the standalone json-formatter (https://github.com/cucumber/json-formatter).'
Methods
convert
Name
To
Id
convert
Name
To
Id
(
obj
)
:
string
Parameters
obj
:
Pickle
|
Feature
Returns
string
finished
finished
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
format
Data
Table
format
Data
Table
(
dataTable
)
:
any
Parameters
dataTable
:
PickleTable
Returns
any
format
Doc
String
format
Doc
String
(
docString
,
gherkinStep
)
:
any
Parameters
docString
:
PickleDocString
gherkinStep
:
Step
Returns
any
Private
format
Scenario
Id
format
Scenario
Id
(
__namedParameters
)
:
string
Parameters
__namedParameters
:
{
feature
:
Feature
;
gherkinExampleRuleMap
:
Record
<
string
,
Rule
>
;
pickle
:
Pickle
;
}
feature
:
Feature
gherkin
Example
Rule
Map
:
Record
<
string
,
Rule
>
pickle
:
Pickle
Returns
string
format
Step
Argument
format
Step
Argument
(
stepArgument
,
gherkinStep
)
:
any
Parameters
stepArgument
:
PickleStepArgument
gherkinStep
:
Step
Returns
any
get
Feature
Data
get
Feature
Data
(
__namedParameters
)
:
IJsonFeature
Parameters
__namedParameters
:
IBuildJsonFeatureOptions
Returns
IJsonFeature
get
Feature
Tags
get
Feature
Tags
(
feature
)
:
IJsonTag
[]
Parameters
feature
:
Feature
Returns
IJsonTag
[]
get
Scenario
Data
get
Scenario
Data
(
__namedParameters
)
:
IJsonScenario
Parameters
__namedParameters
:
IBuildJsonScenarioOptions
Returns
IJsonScenario
Private
get
Scenario
Tag
get
Scenario
Tag
(
tagData
,
feature
,
scenario
)
:
IJsonTag
Parameters
tagData
:
PickleTag
feature
:
Feature
scenario
:
Scenario
Returns
IJsonTag
get
Scenario
Tags
get
Scenario
Tags
(
__namedParameters
)
:
IJsonTag
[]
Parameters
__namedParameters
:
{
feature
:
Feature
;
gherkinScenarioMap
:
Record
<
string
,
Scenario
>
;
pickle
:
Pickle
;
}
feature
:
Feature
gherkin
Scenario
Map
:
Record
<
string
,
Scenario
>
pickle
:
Pickle
Returns
IJsonTag
[]
get
Step
Data
get
Step
Data
(
__namedParameters
)
:
IJsonStep
Parameters
__namedParameters
:
IBuildJsonStepOptions
Returns
IJsonStep
on
Test
Run
Finished
on
Test
Run
Finished
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
color
Fns
cwd
event
Data
Collector
log
print
Attachments
snippet
Builder
stream
support
Code
Library
documentation
convert
Name
To
Id
finished
format
Data
Table
format
Doc
String
format
Scenario
Id
format
Step
Argument
get
Feature
Data
get
Feature
Tags
get
Scenario
Data
get
Scenario
Tag
get
Scenario
Tags
get
Step
Data
on
Test
Run
Finished
@cucumber/cucumber
(root)
api
Generated using
TypeDoc