Tag:unit testing
-
SAP Spartacus Definition of Done
SAP Spartacus Definition of Done) Coding guidelines The Spartacus team adopted the following set of rules to maintain the readability and maintainability of Spartacus code. As a contributor, we ask you to follow these rules (even if you find them violated somewhere). When files always don’t follow these rules and following them will make the […]
-
Remember the refactoring of a piece of code
Background code When maintaining the project code, when scanning the code with sonarlint, the following code is found, which indicates that the complexity of the code circle is 33, which means that this code may be of low quality and difficult to test and maintain.Circle complexity is a measure of code complexity. In the concept […]
-
[automated testing framework] how much do you know about pytest and unittest? What’s the difference? Which should I use?
1、 Well known automated testing framework Java JUnit, TestNG, etc. python PyUnit (unittest), pytest, robot framework, etc 2、 Introduction to pytest Pytest is a very mature and fully functional Python testing framework. It can be competent for various scenarios that unittest can do, such as unit test, web test, APP test, interface test and so […]
-
Rabbitmq project development practical skills – very useful
Rabbitmq message queue usage test In the last blog post, it has been published in CentOS 7 Complete the construction of message queue server on 2. Here is a test to see if you can push and receive messages normally.Because in project development, using good unit testing skills can double your development efficiency and facilitate […]
-
[Java] Introduction to Java unit testing
What is unit testing What is software testing Software testing (English: software testing) describes a process used to promote the identification of the correctness, integrity, safety and quality of software. In other words, software testing is a review or comparison process between actual output and expected output. The classic definition of software testing is: the […]
-
Writing high-quality unit tests for unity3d using NUnit
0x00 unit test pro & con Recently, I tried to introduce TDD (Test Driven Development) development mode into the game project I participated in, so unit testing has become very necessary. This blog will talk about the feelings and thoughts of this period of time. Due to the differences between game development and traditional software […]
-
Preliminary study on flutter
background What is flutter Cross end development process: hybrid (WebView + JS) = > OEM widgets (RN, weex) = > self rendering (fluent)FlutterIt is Google’s open source UI toolkit, which helps developers efficiently build multi platform and exquisite applications through a set of code baseAmbition: Mobile, web (beta channel supported), desktop, embedded overview Overview of […]
-
How to run a demo gracefully
preface This week, I began to contact the translation of English spring tutorials. In order to make readers understand more thoroughly, each tutorial in our translation website has a complete demo on GitHub for readers to browse. So, how to run a demo gracefully? Preparation stage The first thing to think about is, what function […]
-
Spring unit test tutorial (junit5 + mockito)
1. Test If the project team has a test team, the most common concepts are: function test, regression test, smoke test, etc., but these are initiated by testers. Developers often write “unit tests”, but they can be broken down intounit testing andintegration testing Two. Take the common spring IOC as an example. Spring beans depend […]
-
Unit test (II) unit test of system state
InUnit test (I): my first unit testThe method whose result is the return value is unit tested in. This article writes a test that has no return value but changes the state of the object I Add an attribute to the product code and modify the attribute in the method of judging the extension. The […]
-
Take you hand in hand to learn Python automated testing (I) — building an automated testing environment
Construction of automatic test environment 1.1 why Python What is Python? To quote the official saying of Python is “an interpretative, object-oriented For many testers, this paragraph contains Many people are surprised, and most testers hope to use programming surprise to help them realize self-motivated testing, It doesn’t need to spend a lot of energy […]
-
High level reducer design of SAP commerce cloud Spartacus UI
In components reducer. In TS, the loaderreducer function will return the first-order reducer according to the entered EntityType Then, in line 86 of the code, call the first-order reducer for state transition and return to a new state. In CMS store reducers index In TS, the reducer is imported. See line 21 of the code: […]