When comparing Cucumber vs livedoc-mocha, the Slant community recommends Cucumber for most people. In the question“What are the best JavaScript BDD frameworks?” Cucumber is ranked 3rd while livedoc-mocha is ranked 5th. The most important reason people chose Cucumber is:
Cucumber uses natural language for testing, allowing for anyone to write tests.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Natural language
Cucumber uses natural language for testing, allowing for anyone to write tests.
Pro Great looking test output
Pro Loads of options and create your own reports if needed
You can create your own reports as it can output the results in JSON. Not done it ourselves yet, but could be useful.
Pro Powerful implementation of the Gherkin Spec
Cons
Con old and not that compatible with modern tech
Con Not great for Teams that don't value testing
As this takes more effort (ie you need to think harder about the test/spec) to write good tests. We found some team members didn't like it. If your team thinks tests are a tax, better to go with a simpler option like mocha.
Con To get maximum benefit need to write using Gherkin
The Gherkin language is a lot more verbose than what devs are used to writing in.