The following is the general distribution of TDD development types:
The key types here are:
Requestunitcontrol, requestunitmodel, iconfigdataprovider, and requestunitmodeltest
Requestunitcontrol: Interface Control
Requestunitmodel: encapsulates the business logic of requestunit.
Iconfigdataprovider: obtains the data required by the model.
Requestunitmodeltest: a unit test set used to ensure the correctness of the business logic encapsulated in
, the purpose is to let the students have never contacted Gtest to understand the basic use of gtest. There are many more advanced ways to use gtest, which we will discuss later. To summarize the contents of this article:1. Compiling gtest.lib files with vs2. Set the properties of the test project (the header file, lib file,/MT parameters (and the same parameters used when compiling gtest))3. Use the test macro to start a test case and set up checkpoints using the Expect_*,asser_* series.4. Init
I have talked a lot about using Mockery in PHP for test-driven Development (TDD) testing-driven development on the Internet, and some articles on PHP are also found in Baidu and Google, I don't seem to have seen several articles about Mock (disguised object) technology. I will write an article here.
First, let's take a look at the basic idea of Test-Driven Development: write test cases first (generally, this test case is an automated unit test case
person is "thinking" or "in a daze ". Sometimes I think that one of them is too tired to write code, and I will replace it with another one. Or one person is always writing code, and the other is always tutoring.TDD has a rhythm problem. A task is divided into red bars and green bars. The pair of two people focused on "red-green alternation. In this way, we can ensure that the steps of the two are consistent. Both parties know that we have achieved the first step. Generally, you can write test
I have heard of a very good web automation testing framework watin Based on the. NET platform over the past two days. I have downloaded and tried it for a while and it is really easy to use. Its basic functions are a bit like selenium, but not as powerful as Selenium. It does not have script recording and only supports IE6/7. Its basic functions include automatic operations on most HTML elements, multiple search methods, Ajax, frame/iframe, and pop-up boxes. Now we will use a simple example to s
Since mvvm and TDD are used, the two tools are essential:
1. mvvm light Toolkit
2. Silverlight unit testing framework
The corresponding WP7 version is available. Add the DLL to the project.
The following are some important points:
1. Create a new project weibo72. Add a test project weibo7.test
1) Add Microsoft. Silverlight. Testing Microsoft. visualstudio. qualitytools. unittesting. Silverlight to the project reference.2) Modify mainpa
Everyone is familiar with the test driver. I have read a Java book over the past two days and reviewed some basic concepts in TDD as follows:
Dummy
an object that is passed around but never used. typically used to fulfill the parameter list of A method.
stub
an object that always returns the same canned response. may also hold some dummy state.
fake
an actual working implement
1. Caching and performance testingLearn how to install and configure memcached, and use Apache AB to perform performance testing. How performance is in the case of caching and no caching. Write an automated test that requires the test to fail when the caching mechanism is not open.Dreaded problem with invalid cache. How to use tests to help determine whether the logic of invalid cache drops is strong.2. JavaScript's MVC FrameworkUse these frameworks to turn this superlist site into a single-page
These two days have heard a very good based. NET platform of the Web Automation test framework watin, download a trial, really good use. Its basic functions and selenium a bit like, but not as strong as selenium, no script recording, only support IE6/7 and so on. Its basic functions include automating most of the HTML elements, finding ways to support Ajax, supporting Frame/iframe, supporting pop-up boxes, and more. Now let's take a simple example to see how to use Watin for
TDD (test-driven development)-related test framework 1. XUnit: The corresponding test framework for each language 2. EasyMock: Analog interface or class behavior 3. DBUnit: Database Test 4. Spring-test: Provides database integration Test 5. Web-based test based on request (1) Spring-mock: Can mock browser requests, etc. (2) jsptest: Test JSP page 6. Web test based on Control (1) wickettester (2) Apache Shale 7. Apache Commons VFS: Virtual file system,
Read the article on the Internet written by others: http://www.it165.net/os/html/201401/7063.htmlThe article uses Debian, I configure the virtual machine system one is Ubuntu 14.10, the other is Red Hat 5.0, virtual machine software is VitualboxFollow the steps in that article to complete the Ubuntu configuration, but Red Hat is a bit different.Briefly summarize, first turn off the virtual
1: Modify Mac OS system time2:mac OS system via proxy InternetVMware 12 Install Mac OS X 10.10 virtual machine Optimization TipsVirtual video card mishap, so it must be optimized to use, the principle of optimization is able to streamline the simplification, can close the effect on the off, do not duang, the following are some optimization settings:1. Remove Dashboard from the dockEach time accidentally point to this, the inevitable card
Java virtual machine, Dalvik virtual machine, and ART Virtual Machine1. What is JVM? JVM is essentially a piece of software. It is a software abstraction of computer hardware, where Java programs can be run. After compilation, JAVA generates JVM bytecode similar to assembly languages, different from the compilation language produced after C language compilation, C compiled assembly language runs directly on
Dalvik virtual machine features and differences with Java virtual machine, dalvik Virtual Machine1. Differences between Dalvik Virtual Machine and Java Virtual Machine
(1) The Java bytecode generated by the Java program after compilation is stored in the class file; the Dalvik virtual
Windows Driver-Virtual Machine virtual serial port dual-machine debugging, serial port dual-Machine
======================================Copyright Notice======================================
Copyright statement: original articles are not reprinted
Please contact me through "contact email (wlsandwho@foxmail.com)" in the announcement on the right
Do not use acade
Practice: Java Virtual Machine 2 "virtual machine working mode", Java Virtual Machine
Today, I started to practice Java Virtual Machine II: "virtual machine working mode ".
5 Series in total
One of the actual Java virtual machines is "Heap Overflow processing"
Practice: J
Tags: is 51cto custom CTO installation complete picture program RoCE settingsThis article shares with you a VMware Workstation Virtual program installation and virtual machine building"The steps are more, but in a very detailed way, please be patient and follow the steps to see the side action.":Divided into four itemsFirst, set up the virtualization of the physical machineSecond, download the network disk FileThird, install the virtual
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.