开发者

Android: Is there any naming rule for test cases

开发者 https://www.devze.com 2023-02-28 00:50 出处:网络
I found really weird stuff when I was building my test project. I subclassed my own test from AndroidTestCase, and implemented several test cases inside. Some cases didn\'t run at 开发者_如何学运维fir

I found really weird stuff when I was building my test project.

I subclassed my own test from AndroidTestCase, and implemented several test cases inside. Some cases didn't run at 开发者_如何学运维first, however, there was no exceptions. After I just changed the name of these cases, they got invoked by test runner and all passed.

I've no idea if there's any naming convention.


These are the tests naming conventions in Android: https://source.android.com/setup/contribute/code-style#javatests-style-rules

0

精彩评论

暂无评论...
验证码 换一张
取 消