任何人都知道flex元数据机制

发布于 2024-10-04 09:40:45 字数 102 浏览 0 评论 0原文

当我使用flexunit进行测试时,我对[Test]、[Test(async, ui)]等元数据感到困惑,有人知道flex如何解析元数据吗? 如何定义我自己的元数据

When I use flexunit for tests, I confused about the metadata like [Test], [Test(async, ui)], anyone knows how does the metadata parsed by the flex? how to define my own metadata

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花心好男孩 2024-10-11 09:40:45

当您在测试方法中等待异步事件时,应该使用 [Test(async)]。
异步告诉框架暂时不要声明该方法成功,并且我们需要考虑其他事情(事件)才能做出该决定。

You should use [Test(async)] when you're waiting for an asynchronous event in a test method.
Async tells the framework not to declare the method a success just yet, and that there is something else (an event) we need to account for to make that decision.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文