在JUnit (4.x)测试用例中,我希望获得一些日志信息,以防其中一个断言失败。当我在Eclipse中运行这个测试时,我只得到一个异常的失败跟踪。但是,我无法在控制台中获得此日志输出。org.junit.ComparisonFailure: expected:<gradle is gr[8]> but was:<gradle is gr[eat]>
at org.junit.Asse
我克隆了一个存储库,并试图运行一个测试。不幸的是,JUnit 4无法识别我手动添加的目录。测试已经完成。 androidTestCompile 'com.android.support.test:rules:0.4.1'根据这里的要求编辑ExampleUnitTest和运行/调试配置的内容。public class