The Dev Project

The Dev Project is a journey that will never stop, it’s fun and with a lot of challenges, in this publication space you will find many pieces of information about the Development World.

Follow publication

Photo by Mohammad Rahmani on Unsplash

Member-only story

Test Your Software Architecture with the ArchUnit

With the iteration of requirement development, the gradual increase in the amount of code, the introduction of new classes, the features, and many other factors, the architectural rules at the beginning of the system will inevitably be destroyed. For example, the unforeseen violations of the specification are irregular naming, layered code are not standardized, etc

JIN
The Dev Project
Published in
6 min readApr 28, 2022

The architectural corruption will affect the maintainability and scalability of the software system because it requires us to check the coding specification, module classification specification, class dependency specification, et.

There are many other specifications that may need to be customized, which may eventually output a document. However, who can guarantee that all developers develop parameters according to the specifications of the document? It is impossible for a team to establish a perfect system architecture at the beginning. It is because the system architecture should evolve with the iterations of requirement development. By using the architectural metrics, we can ensure the correctness of architecture evolution.

Fitness Functions
It is a mechanism that provides an objective integrity assessment of some architecture characteristics or a combination of architecture characteristics. It overlaps many existing verification mechanisms, depending on the way they are used: as metrics, monitors, unit testing libraries, chaos engineering, and so on. It can reduce or detect the occurrence of architecture corruption early and maintain a unified system architecture constraint.

  • Support rule-based schema auto-detection
  • Lightweight and low access cost
  • Timely feedback on the results
  • low expansion cost
  • Flexible and scalable

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

The Dev Project
The Dev Project

Published in The Dev Project

The Dev Project is a journey that will never stop, it’s fun and with a lot of challenges, in this publication space you will find many pieces of information about the Development World.

No responses yet

Write a response