Tagged articles
9 articles
Page 1 of 1
Go Programming World
Go Programming World
May 10, 2024 · Backend Development

Comprehensive Guide to Writing Tests in Go: Unit, Benchmark, Example, and Fuzz Testing

This article provides a detailed tutorial on Go's testing framework, covering test classifications such as unit, benchmark, example, and fuzz tests, explaining naming conventions, file organization, test execution commands, parallel testing, coverage measurement, and how to integrate these practices into robust backend development workflows.

BenchmarkUnit Testexample-test
0 likes · 31 min read
Comprehensive Guide to Writing Tests in Go: Unit, Benchmark, Example, and Fuzz Testing
The Dominant Programmer
The Dominant Programmer
Feb 20, 2024 · Backend Development

Implementing Retry Logic for Third‑Party APIs with Spring Retry in Spring Boot

This guide shows how to add a retry mechanism to Spring Boot applications using Spring Retry, covering dependency setup, enabling @EnableRetry, defining @Retryable with custom back‑off settings, handling failures with @Recover, writing unit tests, and observing behavior with different retry counts and exception filters.

@EnableRetryJavaRetryable
0 likes · 6 min read
Implementing Retry Logic for Third‑Party APIs with Spring Retry in Spring Boot
360 Quality & Efficiency
360 Quality & Efficiency
Feb 10, 2023 · Backend Development

Using Go's Built‑in Testing Tools: Unit Tests, Benchmarks, Coverage, Fuzzing, and Race Detection

This article introduces Go's native testing ecosystem—including unit testing, benchmark performance measurement, code‑coverage analysis, fuzz testing, and race‑condition detection—through a practical bookkeeping‑app example, demonstrating how each tool can uncover bugs, improve performance, and raise overall code quality.

Unit Testcode coveragefuzz testing
0 likes · 11 min read
Using Go's Built‑in Testing Tools: Unit Tests, Benchmarks, Coverage, Fuzzing, and Race Detection
php Courses
php Courses
Jan 17, 2023 · Backend Development

Implementing the Chain of Responsibility Design Pattern in PHP with Hyperf

This article demonstrates how to implement the Chain of Responsibility design pattern in PHP using the Hyperf framework, detailing the file structure, core classes such as IndexController, HandlerInterface, AbstractHandler, and concrete handlers, and includes a unit test example to verify the workflow.

Backend DevelopmentChain of ResponsibilityHyperf
0 likes · 7 min read
Implementing the Chain of Responsibility Design Pattern in PHP with Hyperf
FunTester
FunTester
Jan 20, 2022 · Backend Development

Mastering Static Resource Mocking in Spock with PowerMock

This article provides a step‑by‑step guide on mocking static variables and static methods in the Spock testing framework using PowerMock, covering annotation setup, custom behavior definitions, and handling mixed scenarios where both static and instance mocks are required.

Java TestingMockitoPowerMock
0 likes · 5 min read
Mastering Static Resource Mocking in Spock with PowerMock
360 Tech Engineering
360 Tech Engineering
Feb 19, 2021 · Backend Development

Guide to Writing and Running Unit Tests in Go

This article explains the importance of unit testing for reliable software, introduces Go's built‑in testing framework, demonstrates how to write test files, use TestMain, benchmark code, and employ the httptest package for HTTP server testing, all illustrated with complete code examples.

BenchmarkUnit Testcode coverage
0 likes · 12 min read
Guide to Writing and Running Unit Tests in Go
Programmer DD
Programmer DD
Oct 23, 2019 · Backend Development

Master Spring Boot Testing: Unit and Integration Tests with JUnit, Hamcrest, and MockMvc

This tutorial walks through writing and running unit and integration tests for a Spring Boot application, covering JUnit and Hamcrest assertions, Maven setup, model definitions, service and controller implementations, MockMvc usage, and both mocked and real‑world test scenarios, complete with sample code and output.

HamcrestIntegration TestJUnit
0 likes · 25 min read
Master Spring Boot Testing: Unit and Integration Tests with JUnit, Hamcrest, and MockMvc