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

Code testing method and device

A code testing and code technology, applied in the field of code testing methods and devices, can solve the problem of low reusability and achieve the effect of improving versatility

Active Publication Date: 2015-07-29
BEIJING RUNKE GENERAL TECH
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

According to this principle, many different coverage inspection tools have emerged, but the reusability of existing coverage inspection tools is not high

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 testing method and device
  • Code testing method and device
  • Code testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0077] In order to enable those skilled in the art to better understand the present invention, firstly, some professional terms related to the present invention will be explained:

[0078] Maven is a software project management tool based on the Project Object Model (POM) that can manage reports, documents, and project construction through a small piece of description information. Maven includes a Project Object Model, a set of standard collections, and a project Lifecycle (Project Lifecycle), a Dependency Management System (Dependency Management System) and logic used to run the plugin goals defined in the phases of the lifecycle;

[0079] Cobertura is an open source tool that measures test coverage by inspecting basic code and observing which code is executed and which code is not executed when the test package is running;

[0080] Ant (Another Neat Tool) is a Java-based cross-platform build tool that can realize automatic project construction and deployment functions;

[0081] Mock...

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 provides a code testing method and device. For all tested codes, a project directory about the tested codes and testing codes can be created based on a maven standard directory structure, and then, a Cobertura test pack is saved at an appointed memory position of a resource catalogue in the project directory; the project directory about the tested codes and the testing codes is associated with a previously created building file, so that the Cobertura test pack can be invoked by the building file to combine an Ant tool with a Cobertura tool for unit tests on the tested codes, and a code covering rate condition about the tested codes is obtained. Therefore, for all the to-be-tested codes, all that is needed is to create the project directory based on the maven standard directory structure, to save the used Cobertura test pack based on the project directory, and to conduct association on the building file to obtain the code covering rate. The test universality is improved.

Description

Technical field [0001] The invention relates to the technical field of software testing, and more specifically, to a code testing method and device. Background technique [0002] Software testing is a very important part of the software construction process. Through software testing, you can find hidden problems in the software and measure the quality of the software. In all software testing, unit testing is an important part. Among them, unit testing is a test for the smallest unit that can be tested in an application. The smallest unit generally refers to methods, classes, and code segments that can implement a function (which can be called For functional modules and other code to be tested). [0003] At present, the main method of unit testing is to obtain the smallest testable unit in the application, and isolate the program code used from the rest of the application code for testing. A very important indicator to measure the smallest unit is the code coverage of the smallest...

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/36
Inventor 段梅
Owner BEIJING RUNKE GENERAL TECH
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