简体   繁体   中英

android cts: Why does package run fail but individual tests pass?

I'm hitting failures when running

  cts-tf > run cts --package android.holo

but when I run the failed tests individually, like

cts-tf > run cts --class android.holo.cts.HoloTest --method testHoloWallpaperNoTitleBar

they pass.

Without knowing the internals, I'd expect that something that failed a package test would fail an individual test. If there was a dependency on a previous test, then if anything failed it would be the individual test.

Is this a cts timing issue, something expected with holo, or something else? If you understand it, please enlighten me, I'm new to cts .

Thanks.

也许该测试用例受同一类或包中的另一个测试用例的影响,但是如果重新运行时它通过了,则可以通过

Holo test cases are usually for screen resolution of the Device under Test. You can ask Google for wave-off on these tests if you are running the tests on Mobile.

As per the previous answer, there could be a chance that previous set of test cases are causing some issues leading to failures of Holo tests (but I doubt this)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM