Skip to content

Transforms the JSON output of a flow type check into JUnit XML format

License

Notifications You must be signed in to change notification settings

kiron/flow-junit-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flow-junit-transformer

Transform JSON output of a flow typecheck into JUnit XML format!

At Kiron Open Higher Education our test results are reported in the JUnit test format to be displayed by our CI environment. While Jest and ESLint can be configured easily to output the JUnit XML format, flow is not able to provide this format. Instead flow can report in a custom JSON format. This utility package takes the flow output from stdin and returns a JUnit complaint result in the stdout.

Installation

yarn add @kironeducation/flow-junit-transformer

Usage

To let flow report in JUnit format simply pipe the result of the flow check command through the utility library:

flow check --json | flow-junit-transformer

With flow-bin and flow-junit-transformer in your devDependencies it is more likely to look like this:

yarn --silent flow check --json | yarn --silent flow-junit-transformer > results/flow-junit.xml

About

Transforms the JSON output of a flow type check into JUnit XML format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published