TNG/ArchUnit-Examples
Sobre
Exemplos do ArchUnit (uma biblioteca Java para testes de arquitetura, que permite definir e verificar regras arquiteturais em Java puro).
Ferramentas de desenvolvimentoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- +2
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalArchUnit Examples
This module presents some examples on how to use the latest release of ArchUnit.
The different subprojects demonstrate the type of test support:
example-junit4shows how to use the JUnit 4 test support including theArchUnitRunnerexample-junit5shows how to use the JUnit 5 test support where test classes are simply being picked up by being annotated with@AnalyzeClassesexample-junit6shows how to use the JUnit 6 test support where test classes are simply being picked up by being annotated with@AnalyzeClassesexample-plainshows how to use ArchUnit independently of any specific test framework, even though as a runtime environment these tests use JUnit 4 as well
All example rules you find within src/test refer to classes from src/main.
These tests are all designed to fail, to demonstrate how production code could violate
typical architectural constraints (like layer dependencies).
You can run them
- with Gradle (using the provided
build.gradlescripts):./gradlew test - with Maven (using the provided
pom.xmlfiles in the same directories):./mvnw test - or directly from your IDE.
Regarding issues
If you have found any issues with the examples or have any question, please direct them to the main repository instead. This repository is an autogenerated version of the latest released version of https://github.com/TNG/ArchUnit/tree/main/archunit-example (with some simplified project setup for illustration)
Explore projetos relacionados
Carregando…