---
title: "Discussion on \"借助 docker 对 GORM 应用进行单元测试\" | Hashnode"
description: "Discussion on \"借助 docker 对 GORM 应用进行单元测试\". 在大多数情况下，用docker中的真实数据库作单元测试要远好于使用Sqlmock"
url: "https://hashnode.com/posts/unit-test-gorm-application/664c6d22ebd0d281593c972d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [借助 docker 对 GORM 应用进行单元测试](https://chedan.io/unit-test-gorm-application?utm_source=hashnode&utm_medium=feed)

在大多数情况下，用docker中的真实数据库作单元测试要远好于使用Sqlmock

Jul 26, 2022 · 4 min read · chedan.io  
Read the article

## Written by

[Dan Che](https://hashnode.com/@dche)

@dche

  
[View profile](https://hashnode.com/@dche)

A software engineer love building & shareing

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
