Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code coverage rate test method and device and computer equipment

A code coverage and test method technology, applied in the field of devices and computer equipment, code coverage test methods, can solve problems such as test technical solutions that do not provide code coverage

Active Publication Date: 2018-03-16
BEIJING ELECTRIC VEHICLE
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the existing related art, no technical solution for code coverage testing is provided

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code coverage rate test method and device and computer equipment
  • Code coverage rate test method and device and computer equipment
  • Code coverage rate test method and device and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0023] figure 1 It is a flow chart of an embodiment of the test method for code coverage of this application, such as figure 1 As shown, the test methods for the above code coverage may include:

[0024] Step 101, compiling the software under test and the controlled object model controlled by the software under test respectively, and associating the software under test with the input and output interfaces of the controlled object model above to form the software under test and the controlled object model above. Closed-loop...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a code coverage rate test method and device and computer equipment. The code coverage rate test method comprises the following steps of: respectively compiling tested softwareand a controlled object model controlled by the tested software so as to form a closed-coop virtual integrated environment of the tested software and the controlled object model; compiling the closed-loop virtual integrated environment to generate an integrated project for testing a code coverage rate; importing a test case into the integrated project to carry out automatic test, and generating atest report of the code coverage rate according to a generation style of the test report of the code coverage rate; and determining a coverage condition, for functions of the tested software, of the test case according to the test report of the code coverage rate, and adjusting the test case according to the coverage condition. According to the method and device and the computer equipment, code coverage rates of tested software can be tested, help is provided for completing and supplementing test cases and the test quality is rapidly enhanced.

Description

technical field [0001] The present application relates to the technical field of vehicle control, in particular to a code coverage test method, device and computer equipment. Background technique [0002] As an important link in the process, control software integration testing can effectively find interface and strategy problems in the tested software, and effectively improve the efficiency of software development. Traditional software testing cannot evaluate the working conditions of test cases, the pros and cons of testing work cannot be evaluated, and the value of test workers cannot be reflected. The code coverage rate is an important index reflecting the degree of coverage of the tested software by test cases, an important index to measure the progress of the testing work, and one of the important indicators to quantify the testing work. According to different coverage contents, it can be subdivided into: path coverage, statement coverage, decision coverage, condition...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F8/41
CPCG06F8/41G06F11/3676
Inventor 刘三兵代康伟黄颖华刘迎
Owner BEIJING ELECTRIC VEHICLE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products