alibaba / alibaba/testable-mock

Testable-mock使用规范的问题

Open
#132 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
1.8k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

大佬你好:
目前,我们团队都已经使用Testable-mock并且效果也很明显,不用启动spring容器上千个单测2、3分钟就跑完了。
但现在遇到个问题难以抉择,DAO层要不要mock的问题:如果mock的话速度快了一倍,但SQL语句的正确性无法保证;如果不mock,速度又慢了。还请大佬指教。

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by reviewing the repository's Testable-mock guidance and existing DAO tests, then document a clear recommendation for when to mock DAO calls and how SQL correctness should be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
databases, testing
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.