@cucumber/json-to-messages
Translate legacy JSON to messages
Last updated 16 days ago by cukebot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cucumber/json-to-messages 
SYNC missed versions from official npm registry.

cucumber/json-to-messages

A library to tranlate legacy JSON output from various cucumber implementations to cucumber-messages.

Currently supports output from:

  • behave
  • cucumber-java
  • cucumber-javascript
  • `cucumber-ruby``

InstalLing

You can install this tool using npm:

npm install @cucumber/json-to-messages

Using the CLI

Send the content of your json file to the CLI:

cat my_report.json | ./node_modules/.bin/json-to-features > my_report.messages

By default, the tool will detect the cucumber implementation used to generate the report but you can specify it manually:

cat my_report.json | ./node_modules/.bin/json-to-features --implementation cucumber-js > my_report.messages

Using as a library

import { jsonToMessages } from '@cucumber/json-to-messages'

const JSONs: Readable = ... // The JSON reports to translate
const outputStream: Writable = ... // A sstream to write the messages to
jsonToMessages(JSONs, outputStream)

Current Tags

  • 1.0.2                                ...           latest (16 days ago)

3 Versions

  • 1.0.2                                ...           16 days ago
  • 1.0.1                                ...           a month ago
  • 1.0.0                                ...           a month ago
Downloads
Today 0
This Week 0
This Month 22
Last Day 0
Last Week 3
Last Month 21
Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |