randunit, a single test generator for android/jvm

backgroundWith continuous delivery becoming more and more popular today, single test, as an important part of ensuring CI quality, has also begun to be valued in China.However, on the single test, everyone's attitude is quite contradictory. There are two main things to worry about:I don't know where to start the first step from 0 to 1What if yo ...

Added by my800stuff on Fri, 21 Jan 2022 03:10:21 +0200

Explain the implementation principle of Jest framework in simple terms

English Version | Chinese version Explain the implementation principle of Jest framework in simple terms https://github.com/Wscats/jest-tutorial What is Jest Jest is a JavaScript testing framework developed by Facebook, which is used to create, run and write JavaScript libraries for testing. Jest is published as an NPM package and can be i ...

Added by tmayder on Sun, 16 Jan 2022 15:55:47 +0200

How to write efficient unit tests in Go

Importance of single test Convenient debuggingFacilitate code refactoringImprove code qualityMake the whole process agile Go single test Basics Basic rules Usually our unit test code is placed in_ test. In the file ending with go, the file is generally placed in the same package as the object code.The Test method starts with Test and ha ...

Added by geo3d on Sat, 15 Jan 2022 05:31:59 +0200

Junit test of Spring mvc framework (implement your own Listener)

I Unit testing using spring JUnit 4classrunner 1,Annotate the test class @RunWith(SpringJUnit4ClassRunner.class) 2. Load the required configuration file @ContextConfiguration(locations={"/spring-gateway-py.xml","classpath:spring-repository-context.xml"}) 3. Transaction configuration @TransactionConfiguration(transactionManager = "trans ...

Added by immot on Sat, 15 Jan 2022 00:10:10 +0200

The method and usage scenario of calling browser API in UI automation

The background is UI automation in a new project recently. I want to investigate how to interact with the browser API to obtain some additional information to help debug when the case fails. Later, it slowly extended to front-end performance test, weak network test and other scenarios. So record the results of the survey here. Mainly to solve t ...

Added by peuge on Fri, 14 Jan 2022 21:46:12 +0200

[S01E02] iOS unit test

what: What is unit testing how: How to conduct unit tests why: Why unit testing 1, What is unit testing 1. Unit test Unit can be simply understood as a method, so unit testing is testing for methods 2. The position of unit test in the test Generally speaking, small tests are used to ensure code quality, and medium and large tests are us ...

Added by tmed on Fri, 14 Jan 2022 02:55:39 +0200

python unit test - unittest

1, Unit test, integration test, function test 1.1 unit test The particle size is the smallest. Generally, the development team uses the white box method to test whether the main test units comply with the "design"; It refers to the inspection and verification of the smallest testable unit in the software 1.2 integration test ...

Added by Andy17 on Wed, 05 Jan 2022 23:48:34 +0200

Exclusive hard goods: appium2 0 + new solutions for single touch and multi touch

♥ preface At appium2 Before 0, the touch screen operation on mobile devices, single finger touch screen and multi finger touch screen were implemented by TouchAction class and multi action class respectively. At appium2 After 0, these 2 methods will be discarded. "[Deprecated] 'TouchAction' action is deprecated. Please use W3C actio ...

Added by WesPear on Wed, 05 Jan 2022 17:43:35 +0200

Front end unit test 03 Sion

Front end unit test 03 Sion Problems in front-end test Before talking about Sinon, we have to talk about some problems in our front-end testing after learning Mocha, chai and enzyme. For example, the foreground test needs to interact with the background, and then test according to the corresponding data after obtaining the background data. For ...

Added by dancing dragon on Wed, 05 Jan 2022 16:51:03 +0200

Testng: load external data

1 Overview For a function or a process, given an input, it should return a result Input refers to the combination of parameters or conditions, which constitutes different test scenarios The result is the input processing of the program. Compare it with the expected result to see the correctness of the function of the current test scenario W ...

Added by whitemoss on Wed, 05 Jan 2022 12:39:44 +0200