【文件属性】:
文件名称:gherkin-parser:解析Cucumber特征文件
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-08 23:16:41
JavaScript
嫩Cucumber
解析小Cucumber特征文件。
安装
$ npm install gherkin-parser
用法
const gherkin = require ( 'gherkin-parser' )
const fs = require ( 'fs' )
fs . createReadStream ( 'some-gherkin-file.feature' )
. pipe ( gherkin ( ) )
. pipe ( process . stdout )
解析器将Cucumber文件转换为AST。 一个例子:
Feature : Can drink beer when thirsty
As a drinker
I want to take beer off the wall
In order to satisfy my thirst
Sce
【文件预览】:
gherkin-parser-master
----.gitignore(54B)
----README.md(2KB)
----test()
--------file.feature(279B)
--------index.js(916B)
----LICENSE(1KB)
----package.json(897B)
----index.js(444B)
----.travis.yml(152B)