Enforce test failures based on the priority set
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
The issue shows a Java ArchRule example using priority(Priority.LOW) and rule.check(classes), but names no source files or tests. Start by reading the rule-checking and priority APIs to see whether violations can be reported as warnings instead of failing tests. Done means a native way to configure that behavior is available and covered by tests; the issue has had no comment for 697 days, so confirm the work is still wanted before starting.
Written by the indexing model from the issue text.
Description
Let's say that I have a rule this way
ArchRule rule = priority(Priority.LOW)
.classes()
.that()
.resideInAPackage("com.example.utils")
.should()
.haveSimpleNameEndingWith("Util")
.because("utility classes should have a 'Util' suffix");
rule.check(classes);
I should be able to set somewhere that even if this rule is violated I should simply throw a warning, but not fail the test suite.
How do I do that ? There should be some native way to do this, as opposed to doing it via a huge method.
if there's no native way, I guess that could be prioritized :)
- Dominant language
- Java
- Stars
- 3.9k
- Forks
- 350
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 16
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TNG/ArchUnit
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
-
Constructor parameters added by the compiler (inner classes, enums) make `getParameters()` / `getParameterTypes()` inconsistent and misplace parameter annotationsPossibly taken @SamuelAdigos claimed this 1 day ago. Open
Difficulty 5/5 Over a week Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
breaking change
Difficulty 5/5 Over a week Newbie friendliness 18/100
TNG/ArchUnit#1756 · 1 comment ·
Maintainers usually reply within 1 day
-
breaking change
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
breaking change
Difficulty 4/5 3-5 days Newbie friendliness 22/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oracle/graalvm-reachability-metadata#11472 ·
Maintainers usually reply within 1 day
-
status: waiting-for-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spring-projects/spring-ai#7269 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 89/100
objectionary/hone-maven-plugin#1353 ·
Maintainers usually reply within 9 days
-
ClassNotFoundException: io.netty.channel.kqueue.KQueueEventLoop stack trace printed during native build on main (Netty 4.2 removed the class)Possibly taken @gastaldi claimed this today. Openarea/netty kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarkusio/quarkus#57939 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
conductor-oss/conductor#1777 ·
Maintainers usually reply within 4 days