-
-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: 添加 nonebug 单元测试文档 #929
Conversation
Codecov Report
@@ Coverage Diff @@
## master #929 +/- ##
==========================================
+ Coverage 77.14% 77.29% +0.14%
==========================================
Files 42 42
Lines 3098 3096 -2
==========================================
+ Hits 2390 2393 +3
+ Misses 708 703 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
🚀 Deployed on https://deploy-preview-929--nonebot2.netlify.app |
md里头部的frontmatter只要一个主入口指定menu option就够了,另外是有缩进的
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unittest/unittest.mdx
能否改个名字 unittest/README.mdx
然后在 frontmatter 里添加一下
slug: /advanced/unittest/
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
好像 mdx 在文件开头 import 的话自动解析 h1 会失效,看 docusaurus 的 mdx 都是用 title 单独指定。 |
import 多了好像会失效,但是一行就没问题,很怪 |
包含了概览,
测试事件响应操作,规则和权限操作,测试依赖注入测试事件预期响应和api调用,测试响应器预期操作和测试适配器其他的因为社区开发大概率用不上所以没写
写了估计也用不上,有需求我再写可能语法有疏漏的地方,也请多多指正修改