Android???????????????
?????Jacks Blog ???????[ 2016/5/20 17:43:48 ] ????????Android ??????
????III. ???????
????1. AssertJ Android
????square/assertj-android
?????????????????
????// ????JUnit
????assertEquals(View.GONE?? view.getVisibility());
????// AssertJ Android
????assertThat(view).isGone();
????2. Robolectric
????Robolectric
?????????????????????????????????????Android?????
??????????????????к???????????????????????????Android?????????????Android??????????豸???棬??????????????????????????????????????????????????????????????????????????????: Pivotal?????????? Robolectric ????????Robolectrict???Android???????? Shadow Classes ???????????????д??????????д??????????????????????????????JVM?????????
????3. Mockito
????Mockito
????????????????????????????
?????????Roblectric??Mockito???????????????????Щ???????????
????// ???????????? myQueryObject.getCurrentTime????????????? 1363027600
????Mockito.doReturn((long) 1363027600).when(myQueryObject).getCurrentTime();
????4. Robotium
????RobotiumTech/robotium
????(Integration Tests)??????????????????????
???????????????????????????????в?????????????????????????????????豸???????е?????Щ??????????????????????????????
????Building Local Unit Tests
????Testing the Android way
????timber?е??????????
????timber/build.gradle
????A BDD (RSpec-like) testing library for Java
????© 2012 - 2016?? Jacksgong(blog.dreamtobe.cn). Licensed under the Creative Commons Attribution-NonCommercial 3.0 license (This license lets others remix?? tweak?? and build upon a work non-commercially?? and although their new works must also acknowledge the original author and be non-commercial?? they don’t have to license their derivative works on the same terms). http://creativecommons.org/licenses/by-nc/3.0/
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
iOS???????mocha??chai??sinon??istanbul???????????????????????????????????????д?????Java????????7??????Android?????????Robolectric3.0????(?)???Kiwi?????????????????????????????????Python?????????????????????????????????????Controller????????д?????????10???????????????????Angular????????????Component??Directive??Pipe ???ServiceAndroid????????????????????????????????--Mockito??????iOS UnitTest???????Vue?????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????