BeautifulReport icon indicating copy to clipboard operation
BeautifulReport copied to clipboard

用例描述可以不写注释直接读取数据吗?

Open kk-18 opened this issue 4 years ago • 1 comments

你好,我的测试用例是写入excel里面批量读取的,结果报告的用例描述为空,请问可以直接读取而不用‘’‘描述吗

kk-18 avatar Sep 20 '19 09:09 kk-18

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/code-rgb/userge-x/4hy0oily4
✅ Preview: https://userge-x-git-pmlogger.code-rgb.vercel.app

vercel[bot] avatar Oct 18 '20 12:10 vercel[bot]

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.35%.

Quality metrics Before After Change
Complexity 6.29 ⭐ 6.26 ⭐ -0.03 👍
Method Length 114.18 🙂 115.37 🙂 1.19 👎
Working memory 11.08 😞 11.12 😞 0.04 👎
Quality 66.77% 🙂 66.42% 🙂 -0.35% 👎
Other metrics Before After Change
Lines 2275 2564 289
Changed files Quality Before Quality After Quality Change
userge/config.py 55.86% 🙂 55.83% 🙂 -0.03% 👎
userge/core/types/raw/command.py 64.89% 🙂 64.42% 🙂 -0.47% 👎
userge/plugins/help.py 60.53% 🙂 60.47% 🙂 -0.06% 👎
userge/plugins/bot/alive.py 85.39% ⭐ 85.36% ⭐ -0.03% 👎
userge/plugins/bot/bot_forwards.py 70.26% 🙂 68.81% 🙂 -1.45% 👎
userge/plugins/bot/bot_pm.py 65.73% 🙂 65.63% 🙂 -0.10% 👎
userge/plugins/bot/gapps.py 59.08% 🙂 58.89% 🙂 -0.19% 👎
userge/plugins/bot/inline_help.py 72.14% 🙂 72.01% 🙂 -0.13% 👎
userge/plugins/bot/ofox.py 75.41% ⭐ 50.81% 🙂 -24.60% 👎
userge/plugins/bot/opinion.py 64.36% 🙂 64.32% 🙂 -0.04% 👎
userge/plugins/bot/secret.py 78.48% ⭐ 78.42% ⭐ -0.06% 👎
userge/plugins/bot/utube_inline.py 69.04% 🙂 69.02% 🙂 -0.02% 👎
userge/plugins/fun/gen_memes.py 34.62% 😞 34.62% 😞 0.00%
userge/plugins/fun/nsfw.py 73.75% 🙂 73.63% 🙂 -0.12% 👎
userge/plugins/utils/pm_logger.py 71.33% 🙂
userge/plugins/utils/snips.py 66.42% 🙂 65.91% 🙂 -0.51% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
userge/plugins/help.py inline_answer 142 ⛔ 1409 ⛔ 42 ⛔ 0.14% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userge/plugins/bot/opinion.py choice_cb 38 ⛔ 535 ⛔ 19 ⛔ 11.32% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userge/core/types/raw/command.py _format_about 51 ⛔ 375 ⛔ 12 😞 17.44% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userge/core/types/raw/command.py Command.parse 23 😞 238 ⛔ 31 ⛔ 20.33% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userge/plugins/help.py helpme 20 😞 261 ⛔ 22 ⛔ 23.49% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Let us know what you think of it by mentioning @sourcery-ai in a comment.

sourcery-ai[bot] avatar Oct 18 '20 12:10 sourcery-ai[bot]