Skip to content

Comment on My project about BDD tests to Living Documentation

Comments

BDD is a great idea in theory. In practice, the tests often become deeply nested in contexts, rely on shared state and can be very difficult to read. xUnit style tests are not perfect but the best choice for readability and maintainability

I have not used xUint, and can't compare, thanks for mention I will look. But there is always some ways to improve messed tests, like page objects or page components and so on.

BDD methodology in opinion serves to business goals. And it is not only about syntax, but about whole way to make projects.

I don't think BDD scales well with complex requirements, the end result gets quite messy in my opinion, here is an example [1]. xUnit tests usually have a method per test, much easy to reason about. Not to put you off, just that has been my experience and I usually try and steer people away from BDD test frameworks

1: https://github.com/cloudfoundry/cloud_controller_ng/blob/mas...

While I agree that BDD doesn't scale well I don't understand how xUnit (which is a unit tests framework hacked into BDD if I understand correctly) can help with that ?

BDD is BDD regardless of the framework, you want to use the same syntax

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.