xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.87k stars 776 forks source link

丰富单测报错 #5305

Closed TOMO-CAT closed 2 months ago

TOMO-CAT commented 2 months ago

你在什么场景下需要该功能?

如果单测过多的话,需要往前翻看哪个单测挂了以及查看单测的日志输出。 希望可以将挂掉的单测日志保存在一个文件,以及在跑完单测后输出控制台查看哪些单测过了哪些单测没过。

描述可能的解决方案

类似 bazel 单测跑完后的结果: image

描述你认为的候选方案

No response

其他信息

No response

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: Rich single test error reporting

In what scenario do you need this function?

If there are too many single tests, you need to look forward to see which single test failed and check the log output of the single test. I hope that I can save the failed single test log in a file, and after running the single test, output the console to see which single tests passed and which failed.

Describe possible solutions

Similar to the results after running the bazel single test: image

Describe your alternatives

No response

other information

No response

TOMO-CAT commented 2 months ago

执行 xmake test -v 的时候能不能和 xmake run 一样同步输出日志,如果这个和丰富单测报错允许的话我自己能提个 PR 吗就不耽误你们的开发了

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


When executing xmake test -v, can the log be output synchronously like xmake run? If this and rich single test error reporting are allowed, can I submit a PR myself so as not to delay your development?

waruqi commented 2 months ago

https://github.com/xmake-io/xmake/pull/5387