peteclark82 / cuke-tree

A hierarchical Cucumber test report generator and IDE for node.js
MIT License
12 stars 4 forks source link

Progress bar depends on a cucumber custom formatter #5

Closed simondean closed 11 years ago

simondean commented 11 years ago

The progress bar in the cuke-tree IDE only works if a cucumber custom formatter is used to output lines like this:

[SCENARIO][STATUS:passed]
[SCENARIO][STATUS:failed]
[SCENARIO][STATUS:passed]

A solution is to read the cucumber JSON output file in real-time to parse the progress of the features/scenarios as they finish. The growing-file and JSONStream node modules can be used to do this.