Tag

Spock

1 views collected around this technical thread.

Qunhe Technology Quality Tech
Qunhe Technology Quality Tech
Jun 29, 2023 · Backend Development

Boost API Test Efficiency with Groovy, Spock, and RestAssured

This article compares a Java + TestNG + HttpClient stack with a Groovy + Spock + RestAssured approach, showing how data‑driven testing, encryption handling, data extraction, and validation can be streamlined for more flexible and efficient API testing.

API testingData‑driven testingGroovy
0 likes · 17 min read
Boost API Test Efficiency with Groovy, Spock, and RestAssured
政采云技术
政采云技术
Feb 7, 2023 · Fundamentals

Comprehensive Guide to Unit Testing with the Spock Framework

This article provides an in‑depth tutorial on unit testing using Spock, covering its advantages over JUnit, core concepts like specifications, fixtures, feature methods, data‑driven testing, mock and stub techniques, interaction constraints, and tooling for automated test generation, all illustrated with Groovy and Java code examples.

Data‑driven testingGroovyJava
0 likes · 22 min read
Comprehensive Guide to Unit Testing with the Spock Framework
DaTaobao Tech
DaTaobao Tech
Mar 24, 2022 · Fundamentals

Introduction to the Spock Testing Framework for Java and Groovy

Spock is an open‑source Java/Groovy testing framework that blends JUnit‑style structure with a concise Groovy DSL, offering data‑driven “given‑expect‑where” tests, straightforward mocking and property injection, Maven‑based setup, and seamless PowerMock integration for static‑method mocking, making it a powerful alternative to traditional unit‑test tools.

GroovyJavaSpock
0 likes · 17 min read
Introduction to the Spock Testing Framework for Java and Groovy
FunTester
FunTester
Dec 14, 2021 · Fundamentals

Challenges and Solutions for Unit Test Coverage in Spring Boot: Mocking Static Methods with Spock, Mockito, and PowerMock

The author describes encountering quality‑assurance challenges in Spring Boot, revisiting unit‑testing frameworks like Spock, Mockito, and PowerMock, struggling with static‑method mocking, and ultimately adopting a "reset and rebuild" strategy to resolve dependency conflicts and improve test coverage.

MockitoPowerMockSpock
0 likes · 5 min read
Challenges and Solutions for Unit Test Coverage in Spring Boot: Mocking Static Methods with Spock, Mockito, and PowerMock
FunTester
FunTester
Oct 22, 2021 · Backend Development

Using Groovy MetaClass to Dynamically Add Methods and Properties to Classes and Objects

This article demonstrates how Groovy's MetaClass can be used at runtime to add object methods, static methods, and properties to classes, and includes a complete Spock unit‑test example that verifies dynamic behavior with detailed code snippets and console output.

GroovySpockdynamic programming
0 likes · 7 min read
Using Groovy MetaClass to Dynamically Add Methods and Properties to Classes and Objects
FunTester
FunTester
Jul 31, 2020 · Backend Development

Using Java Deflater/Inflater for Compression and Decompression with Base64 Encoding

This article demonstrates how to use Java's Deflater and DeflaterOutputStream classes to compress data into Base64 strings, how to decompress them with InflaterOutputStream, and includes Spock test cases that compare compressed and original lengths for various inputs.

JavaSpockTesting
0 likes · 6 min read
Using Java Deflater/Inflater for Compression and Decompression with Base64 Encoding
FunTester
FunTester
Mar 17, 2020 · Fundamentals

Curated List of Unit Testing and White‑Box Testing Articles

This page provides a curated collection of Chinese articles covering unit testing, white‑box testing, testing frameworks such as Spock, JUnit, Selenium, performance testing, and related technical and non‑code topics for software developers and testers.

JunitSeleniumSpock
0 likes · 7 min read
Curated List of Unit Testing and White‑Box Testing Articles
FunTester
FunTester
Mar 1, 2020 · Fundamentals

Curated List of Technical Articles on Unit Testing, Automation, and Performance Testing

This collection provides a curated set of Chinese and English resources covering unit testing frameworks like Spock, JUnit, Selenium, performance testing tools, API testing, and related non‑technical articles, offering developers comprehensive guidance for software testing practices.

AutomationJunitPerformance Testing
0 likes · 6 min read
Curated List of Technical Articles on Unit Testing, Automation, and Performance Testing
FunTester
FunTester
Nov 17, 2019 · Backend Development

Advanced Spock Framework Usage with Groovy Data‑Driven Tests

This article demonstrates how to extend basic Spock usage by applying Groovy‑based helper methods, data‑driven testing, and advanced language features within a mixed Java‑Groovy project, while also addressing common pitfalls and providing complete example code.

Backend DevelopmentData‑driven testingGroovy
0 likes · 7 min read
Advanced Spock Framework Usage with Groovy Data‑Driven Tests