Replies: 1 comment
-
@ythirion excellent, thanks a lot! This is really useful, testing the architecture itself - the dependencies - and learning more about the dependencies by reading the tests. To classify the above, I'm now seeing the following "groups": Clean Architecture:
General - Naming:
General - Access
General - Dependecies
After reading your list, additional ideas I have are:
The above is a rough list I thought of now, I will check what is possible, at the moment I'm reading the code you added for the banking Kata (.NET) to learn more about usage, so I'll let you know after I extend it further. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi community,
What if I say that we can put our Clean Architecture under tests ?
It is the promise of a library called ArchUnit : Unit Test your Architecture.
You can really make your architecture and its related rules explicit through your test suite by describing architecture rules.
It is pretty well integrated with JUnit in java and xUnit in .NET.
You can automate checks like :
Use Cases
--->Domain
but the opposite is forbidden for example)is
/has
function that should return a booleanget
functions should not returnvoid
I have some slides on my own usage here and a repository with code examples in C# / java / scala here
What do you think about it ?
What other Use Cases do you identify for this library ?
Beta Was this translation helpful? Give feedback.
All reactions