Spock
WireMock
Our great sponsors
Spock | WireMock | |
---|---|---|
11 | 13 | |
3,489 | 6,084 | |
0.3% | 1.3% | |
9.4 | 9.6 | |
5 days ago | 5 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.
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.
WireMock
-
Fastify Meets WireMock: External Service Mocking
This article reveals how to integrate WireMock into Fastify with ease, enabling developers to effortlessly generate mock responses for external services. Join us as we explore the straightforward process of seamlessly integrating and optimizing Fastify applications using WireMock for enhanced testing capabilities.
- Wiremock
-
r/programming should shut down from 12th to 14th June
https://github.com/wiremock/wiremock is one such tool.
- Hello, the HN World WireMock joins the chat
-
How do you create test cases for APIs?
Check out https://wiremock.org/
-
WireMock Extension for PHPUnit
Me and my company use WireMock a lot, it's nice tool but didn't find any nice ways to integrate with PHPUnit. What is WireMock you may ask - it's tool for mocking http requests/responses, like 3-rd apis https://wiremock.org. Wanted to use our tool which was under private repository in other projects I work in, so decided to release our own in-house WireMock integration with PHPUnit as library so it can be used by other people - https://packagist.org/packages/cobiro/wiremock, features are pretty simple:
-
What are your biggest pains when building and consuming APIs? Hit me..
A nightmare indeed! Try wiremock
- We created WireMock, an API platform that is designed to improve developer productivity and enables developers and testers to Mock APIs in every stage of the API lifecycle
- WireMock is an API platform that is designed to improve developer productivity and enables developers and testers to Mock APIs in every stage of the API lifecycle
-
How to Boost Code Coverage with Functional Testing
Yes I agree, mocking is a bit of an overloaded term, and the libraries we used for stubbing like gRPC Mock and WireMock also have `mock` in their name, even though they are real servers with stubbing
What are some alternatives?
Cucumber - Cucumber for the JVM
MockServer - MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).
REST Assured - Java DSL for easy testing of REST services
Mockito - Most popular Mocking framework for unit tests written in Java
AssertJ - AssertJ is a library providing easy to use rich typed assertions
Awaitility - Awaitility is a small Java DSL for synchronizing asynchronous operations
Testcontainers - Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Karate - Test Automation Made Simple
ArchUnit - A Java architecture test library, to specify and assert architecture rules in plain Java
Hoverfly Java - Java binding for Hoverfly