ArchUnit
Spock
Our great sponsors
ArchUnit | Spock | |
---|---|---|
6 | 11 | |
3,062 | 3,489 | |
1.5% | 0.3% | |
9.0 | 9.4 | |
1 day ago | 3 days ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ArchUnit
-
How to create Unit tests for code design?
More examples you can find at official user guide https://www.archunit.org/userguide/html/000_Index.html or at github repository https://github.com/TNG/ArchUnit
-
You Want Modules, Not Microservices
I feel like the types of people that use ArchUnit are the types of people that misuse it anyway. Even the elevator pitch example in the project repository is of the backwards horizontal layering that leads any change to carpet bomb a project.
-
Anything similar to ArchUnit in Go?
I looked around but couldn't find anything that was very popular. Are there any packages similar to ArchUnit (See: https://github.com/TNG/ArchUnit)?
- Does anybody know any good materials for java defensive coding please?.
-
ArchUnit
JUnit 4
-
Wednesday Links - Edition 2020-12-23 🎄
ArchUnit 0.15.0 released (2 min read) 🎉 https://github.com/TNG/ArchUnit/releases/tag/v0.15.0
Spock
-
Mastering Spring Cloud Gateway Testing: Predicates (part 1)
I love using the Spock framework for its simplicity, readability, and maintainability. That's why we use Spock to drive our integration tests.
-
Helidon NÃma is the first Java microservices framework based on virtual threads
Well I care a lot that it exists. And many other people I know do as well. Just because you don't seem to like it, you shouldn't imagine everyone else is like you.
Maybe Grails is no longer used as much (like Rails itself), but Groovy found other usages since then, like https://spockframework.org/ and Jenkins pipelines (https://www.jenkins.io/doc/book/pipeline/syntax/). It's not going anywhere, and I see no reason for anyone to be upset about it.
-
Ask HN: What's your favorite software testing framework and why?
In my opinion it is Spock for Java/Groovy [1]. The amount of functionality and readability you can squeeze from Groovy's DSLesque is absurd. Is basically a full fledged new test language with Java sprinkled as the test contents code
[1]: https://spockframework.org/
- 7 Awesome Libraries for Java Unit & Integration Testing
- There is framework for everything.
-
Are there languages that allow to extend its syntax ?
Groovy allows you to perform transforms on it's AST. If you look at the Spock framework, they used AST transforms to pull off a lot of the DSL.
-
Using Cucumber and Spock for API test Automation — What Benefits Can You Expect?
Spock and Cucumber exemplify the philosophy of behavior-driven development (BDD). The principle behind BDD is that you must first define the desired result of the added feature in a subject-oriented language before writing any tests. The developers are then given the final documentation.
- A linguagem de programação Groovy - Radar da itexto
- Gradle 7.0 Released
-
HTTPS Client Certificate Authentication With Java
As a quick demonstration, the following (Spock) test asserts that the client JVM code fails to create an SSL connection with the service. Note that I chose to use Vert.x Web Client to handle interacting with the service, but don't let this decision distract from the core content of this post. Nevertheless, if you haven't used Vert.x, I encourage you to try it out -- especially for building server-side network applications.
What are some alternatives?
JUnit - A programmer-oriented testing framework for Java.
Cucumber - Cucumber for the JVM
Mutability Detector - Lightweight analysis tool for detecting mutability in Java classes
REST Assured - Java DSL for easy testing of REST services
PMD - An extensible multilanguage static code analyzer.
AssertJ - AssertJ is a library providing easy to use rich typed assertions
JFairy - Java fake data generator
Awaitility - Awaitility is a small Java DSL for synchronizing asynchronous operations
Mockito - Most popular Mocking framework for unit tests written in Java
Lamdba Behave - A modern testing and behavioural specification framework for Java 8
WireMock - A tool for mocking HTTP services