laixintao / laixintao/problems
Auto mock?
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
能否指定一系列文件,然后在测试的时候,根据这些文件,如果匹配到 http 就自动用文件中的内容来mock。(docker 能否劫持容器的http请求然后返回mock的内容呢?)
另外在生成的时候,能否根据类似 https://www.kawabangga.com/posts/3723 的原理,来辅助自动生成http mock 请求?
这样在测试类似 LeanCloud 的命令行的时候会很有用,因为命令行的测试要用继承测试,比如pexpect,但是要发出去的请求就很难mock了。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files, tests, or entry points. Start by clarifying the expected Docker and HTTP-mocking workflow for command-line tests using pexpect, and review the linked article's proposed generation approach. Done would require an agreed scope for file-based request matching and automatic mock generation, including how LeanCloud-like requests are covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- cli, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100