CJB*_*JBS 6 junit android robolectric
我有一个正在进行中的robolectric单元测试.我想暂时禁用它,等待实现,但我不想评论整个测试.
如何在不实际取消测试的情况下暂时禁用robolectric单元测试?
JUnit @Ignore属性可用于临时禁用单元测试:
@RunWith(MyRobolectricGradleTestRunner.class)
public class TestAbc123 extends MyTestBase
{
@Ignore // This attribute may be removed once the test is ready
@Test
public void TestAbc123Scenerio1()
{
Run Code Online (Sandbox Code Playgroud)
忽略的测试显示为带有水平条的琥珀色圆盘:

| 归档时间: |
|
| 查看次数: |
1494 次 |
| 最近记录: |