异常后继续测试Android版 [英] Continue Android tests after an exception

查看:125
本文介绍了异常后继续测试Android版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行我的测试套件Android Studio中,偶尔会出现在我的code(而不是在测试)从某处抛出的异常,这将导致目前的测试失败(好,因为测试发现一个bug )及试验的其余部分停止运行(不那么好)。我想测试继续运行,使整个套件完成。这可能吗?

When running my test suite in Android Studio, occasionally there will be an exception thrown from somewhere in my code (not in the test) which will cause the current test to fail (good because the test has found a bug) and the rest of the tests to stop running (not so good). I'd like the tests to continue running so that the entire suite finishes. Is this possible?

推荐答案

这是不可能通过INTER preTER和编译器的概念。 Android使用JVM(Java虚拟机)和JIT(准时)编译器。因此在错误的时间,将无法再编译因此执行将停止从错误的角度。

it is not possible by concept of INTERPRETER and COMPILER. Android uses jvm(java virtual machine) and JIT (just in time) compiler. so at the time of bug it will not able to compile further so execution will stop from the point of bug.

这篇关于异常后继续测试Android版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆