Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Why no unit tests? #35

Open
TheWinch opened this issue Nov 22, 2020 · 2 comments
Open

[Question] Why no unit tests? #35

TheWinch opened this issue Nov 22, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request testing Testing

Comments

@TheWinch
Copy link

Hello,

First of all, thank you @stemmlerjs for putting that together. That repo and your courses are the most applied, reusable piece of teaching I've found on the DDD matters.

However, while you go in great lengths about architectural concerns, I was surprised by how few unit tests there are in your code repository. Usually, TDD is a good companion to DDD. Do you have thoughts to share about it ?

@stemmlerjs
Copy link
Owner

@TheWinch, thank you! I certainly do have opinions about this that you'll hear very soon. I've been studying and experimenting with this. I'm currently working on Chapter 3 of solidbook.io, which includes a discussion and demonstration of TDD, BDD, and Extreme Programming principles & practices in detail.

Long story short, I believe in the XP practice of writing the failing customer tests first (which will look a lot like BDD - some also call these "acceptance tests"). It is so beneficial to get your testing architecture and your customer tests set up early on in the project. That's something I regret not doing earlier because it influences how you write testable application layer use cases.

I haven't followed my own advice here; I was still very much in the process of research, experimentation, and deciding upon the philosophy for testing that I want to preach (in addition to writing about my decisions) when I was assembling this codebase.

Thank you @TheWinch, again, for your comment, your patience, and your support. Please stay tuned for an email from me on:

  • BDD, TDD, and XP principles in practice in Chapter 3
  • updates to this codebase
  • a revised version of Chapter 11 which will walk you through TDD applied here in DDDForum

@ydennisy
Copy link

Hi @stemmlerjs just a ping here to check when you may be in a position to add unit tests to this project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing Testing
Projects
None yet
Development

No branches or pull requests

3 participants