CN106126430A - The method of testing of a kind of code coverage and device - Google Patents

The method of testing of a kind of code coverage and device Download PDF

Info

Publication number
CN106126430A
CN106126430A CN201610694732.4A CN201610694732A CN106126430A CN 106126430 A CN106126430 A CN 106126430A CN 201610694732 A CN201610694732 A CN 201610694732A CN 106126430 A CN106126430 A CN 106126430A
Authority
CN
China
Prior art keywords
file
tested software
code
appointment
compiling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610694732.4A
Other languages
Chinese (zh)
Inventor
刘斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610694732.4A priority Critical patent/CN106126430A/en
Publication of CN106126430A publication Critical patent/CN106126430A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Abstract

The invention discloses method of testing and the device of a kind of code coverage, the method includes: arranges appointment compiling option in the Makefile file of tested software, generates gcno file, load tested software, generate gcda file;Perform tested software correspondence test case, the execution information of tested software code source file is stored to gcno file;Based on gcno file, the code source file of tested software is performed Gcov order, acquired results is stored to gcda file;If tested software code is user mode codes, arrange appointment compiling option be included in each $ of Makefile file (CC) afterwards adds appointment compile option;If tested software code is kernel state code, appointment compiling option is set and includes being arranged to the EXTRA_CFLAGS+ of Makefile file specify compiling option.The program is simultaneously suitable for user mode codes and the coverage rate test of kernel state code.

Description

The method of testing of a kind of code coverage and device
Technical field
The present invention relates to code coverage technical field of measurement and test, more particularly, it relates to the test of a kind of code coverage Method and device.
Background technology
Code coverage (Code Coverage) is the reflection test case important indicator to tested software level of coverage, Also it is the important indicator weighing test job progress.In simple terms, code coverage is the highest, and the tested soft of its correspondence is described Part is the most excellent.
Therefore, for development teams, one of rigid criterion that code coverage has been intended to.In prior art A lot of for realizing the technical scheme of the test of code coverage, but, inventor finds, technical scheme of the prior art is wanted Not exactly for the code coverage of User space is tested, otherwise exactly the code coverage of kernel state is tested, But, there is not a kind of scheme that can be simultaneously suitable for user mode codes coverage rate and kernel state code coverage.
In sum, the technical scheme existence realizing code coverage test in prior art cannot be simultaneously suitable for user State code coverage and the problem of kernel state code coverage.
Summary of the invention
It is an object of the invention to provide method of testing and the device of a kind of code coverage, to solve prior art realizes What the technical scheme of code coverage test existed cannot be simultaneously suitable for user mode codes coverage rate and kernel state code coverage The problem of rate.
To achieve these goals, the present invention provides following technical scheme:
A kind of method of testing of code coverage, including:
Appointment compiling option is set in the Makefile file of tested software, to generate corresponding gcno file;Load Described tested software, to generate corresponding gcda file;
Perform the test case corresponding with described tested software, and code source file corresponding for described tested software is being held Execution information during row stores to described gcno file;
Based on described gcno file, the code source file that described tested software is corresponding is performed Gcov order, with to described quilt The code coverage surveying software is tested, and the result of test gained is stored to described gcda file;
Wherein, if described tested software correspondence code is user mode codes, then appointment compiling option is set and is included in institute State and Makefile file adds after each $ (CC) described appointment compiling option;If described tested software correspondence code is Kernel state code, then arrange appointment compiling option and include the EXTRA_CFLAGS+ in described Makefile file is arranged to institute State appointment compiling option.
Preferably, after the result of test gained is stored to described gcda file, also include:
Described gcda file is performed Lcov order, obtains the html file of correspondence.
Preferably, before the Makefile file of tested software arranges appointment compiling option, also include:
By in kernel corresponding for the positional information compiling of Gcov instrument corresponding for described Gcov order to described tested software.
Preferably, before the Makefile file of tested software arranges appointment compiling option, also include:
Include header file is added under the assigned catalogue that described tested software is corresponding, it is achieved positional information is described Compiling in kernel.
Preferably, also include:
On the code of described test case, the number of times that corresponding code performs is marked according to preset rules.
A kind of test device of code coverage, including:
Generation module, for arranging appointment compiling option, to generate correspondence in the Makefile file of tested software Gcno file;Load described tested software, to generate corresponding gcda file;
Perform module, for performing the test case corresponding with described tested software, and by corresponding for described tested software Code source file execution information in the process of implementation stores to described gcno file;
Test module, for performing Gcov life based on described gcno file to the code source file that described tested software is corresponding Order, tests with the code coverage to described tested software, and stores the result of test gained to described gcda file In;
Wherein, if described tested software correspondence code is user mode codes, then appointment compiling option is set and is included in institute State and Makefile file adds after each $ (CC) described appointment compiling option;If described tested software correspondence code is Kernel state code, then arrange appointment compiling option and include the EXTRA_CFLAGS+ in described Makefile file is arranged to institute State appointment compiling option.
Preferably, described test module also includes:
Test cell, after the result of test gained being stored to described gcda file, to described gcda file Perform Lcov order, obtain the html file of correspondence.
Preferably, also include:
Collector, before arranging appointment compiling option in the Makefile file of tested software, by described In the positional information compiling kernel that extremely described tested software is corresponding of the Gcov instrument that Gcov order is corresponding.
Preferably, described collector also includes:
Compilation unit, before arranging appointment compiling option in the Makefile file of tested software, by include Header file adds under the assigned catalogue that described tested software is corresponding, it is achieved positional information compiling in described kernel.
Preferably, also include:
Indicate module, for marking the secondary of corresponding code execution on the code of described test case according to preset rules Number.
The invention provides method of testing and the device of a kind of code coverage, wherein the method includes: at tested software Makefile file in appointment compiling option is set, to generate corresponding gcno file;Load described tested software, to generate Corresponding gcda file;Perform the test case corresponding with described tested software, and by code source corresponding for described tested software File execution information in the process of implementation stores to described gcno file;Based on described gcno file to described tested software pair The code source file answered performs Gcov order, tests with the code coverage to described tested software, and will test gained Result store to described gcda file;Wherein, if described tested software correspondence code is user mode codes, then finger is set Delimit the organizational structure to translate to add after option is included in described Makefile file each $ (CC) and described specify compiling option;If it is described Tested software correspondence code is kernel state code, then arrange appointment compiling option and include in described Makefile file EXTRA_CFLAGS+ is arranged to described appointment and compiles option.In technical scheme disclosed in the present application, by tested software Makefile file the generation realizing gcno file is set, and by loading tested software, generate gcda file;And then right After tested software implementation of test cases based on the code source file of tested software is performed by gcno file Gcov order realize right The test of tested software code coverage, and correspondence result is stored to gcda file, obtain for staff;Wherein, right Differently configured for Makefile file in the test of the user mode codes code coverage corresponding with kernel state code.By This, the test that can be realized the code coverage for user mode codes by the change configured can be realized again for kernel state generation The test of the code coverage of code so that the technical scheme that the embodiment of the present invention provides has versatility, solves prior art What the middle technical scheme realizing code coverage test existed cannot be simultaneously suitable for user mode codes coverage rate and kernel state generation The problem of code coverage rate.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to The accompanying drawing provided obtains other accompanying drawing.
The flow chart of the method for testing of a kind of code coverage that Fig. 1 provides for the embodiment of the present invention;
The method of testing of a kind of code coverage that Fig. 2 provides for the embodiment of the present invention performs make menuconfig The schematic diagram of order;
After the method for testing of a kind of code coverage that Fig. 3 provides for the embodiment of the present invention selects General setup Interface schematic diagram;
The method of testing of a kind of code coverage that Fig. 4 provides for the embodiment of the present invention selects GCOV-based Interface schematic diagram after kernel profiling;
The structural representation of the test device of a kind of code coverage that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, it illustrates the flow chart of the method for testing of a kind of code coverage that the embodiment of the present invention provides, May comprise steps of:
S11: appointment compiling option is set in the Makefile file of tested software, to generate corresponding gcno file; Load tested software, to generate corresponding gcda file;Wherein, if tested software correspondence code is user mode codes, then set Put appointment compiling option and be included in each $ (CC) addition appointment afterwards compiling option in Makefile file;If tested software Corresponding code is kernel state code, then arrange appointment compiling option and include setting the EXTRA_CFLAGS+ in Makefile file It is set to specify compiling option.
Wherein, it is intended that compiling option is the option corresponding with generating gcno file function, specifically, if tested soft Part is user mode codes, can be realized by following language: EXTRA_CFLAGS+=-fprofile-arcs-ftest- coverage.Appointment compiling option is set in the Makefile file of tested software by such scheme, can compile Rear click generates corresponding gcno file, and the tested software loaded, then for the file to be measured that suffix is .ko form, thus Generate the gcda file associated with gcno.It addition, the gcno file of some environment generations is hidden file, now only need to be by its literary composition Part attribute modification is visible.
S12: perform the test case corresponding with tested software, and code source file corresponding for tested software was being performed Execution information in journey stores to gcno file.
Pass through implementation of test cases, it is possible to realize the execution to tested software correspondence code, thus this code will be comprised Code source file execution information in the process of implementation stores to gcno file, and this execution information can be entered according to actual needs Row sets, and specifically can include information and execution result etc. during execution time, execution, thus, in the generation to tested software Code source file can call the above-mentioned information in gcno file during performing Gcov order, thus realizes code coverage Test.
S13: the code source file that tested software is corresponding is performed Gcov order, with to tested software based on gcno file Code coverage is tested, and the result of test gained is stored to gcda file.
Test result is stored to gcda file, thus staff can be directly obtained by gcda file and test The code coverage rate score arrived.And the Gcov instrument of Gcov order correspondence is the abbreviation of GCCCoverage, this instrument is order Console program under Hang, can rapidly and efficiently realize the test of code coverage.It addition, before performing above-mentioned steps, Can also gcno file be copied under specified folder, it is also possible to the code source file of tested software is also copied to this appointment Under file, and then under this specified folder, realize the execution of Gcov order, it is possible to the convenient location for gcno file, enter And be conducive to the execution ordered.
In technical scheme disclosed in the present application, realize gcno file by Makefile file in tested software is arranged Generation, and by load tested software, generate gcda file;And then based on right after to tested software implementation of test cases Gcno file performs Gcov order and realizes the test to tested software code coverage the code source file of tested software, and will Corresponding result stores to gcda file, obtains for staff;Wherein, corresponding with kernel state code for user mode codes Differently configured for Makefile file in the test of code coverage.Thus, the change by configuring can realize for The test of the code coverage of user mode codes can realize again the test of the code coverage for kernel state code so that this The technical scheme that bright embodiment provides has versatility, solves the technical scheme realizing code coverage test in prior art Exist cannot be simultaneously suitable for user mode codes coverage rate and the problem of kernel state code coverage.
It is further to note that before stating step in realization, it is also possible to perform to hang the step of corresponding document, specifically Can be realized by following code: mount-t debugfs none/sys/kernel/debug.This step is the most selected originally The execution position of the technique scheme that inventive embodiments provides, i.e. performs under the above-mentioned file hung.
It should be noted that if test kernel state code and the code coverage of user mode codes simultaneously, then should be by two Gcno file and gcda file that individual code produces accordingly are put in two files, the gcno file that i.e. kernel state code is corresponding It is put under a file with gcda file, and gcno file corresponding to user mode codes and gcda file are put into another file Under folder.
The method of testing of a kind of code coverage that the embodiment of the present invention provides, stores the result of test gained to gcda After in file, it is also possible to including:
Gcda file is performed Lcov order, obtains the html file of correspondence.
Wherein, before performing this step, gcda file can be put under specified folder, be specifically as follows gcno literary composition The file at part place.And html file includes the data of code coverage, these data are relative in former gcda file Data are more directly perceived, clear, facilitate the acquisition of staff.
It addition, the Lcov instrument of Lcov order correspondence is made up of one group of PERL script, to realize output based on HTML, and Generate a complete HTML tree;Output includes the information such as coverage rate percentage ratio, chart and overview page, facilitates user the most clear Look at coverage data.Specifically, Lcov be with compiling after generate gcno file, perform generate gcda file generated corresponding The information of html format, and showing the coverage rate image conversion of code.
The method of testing of a kind of code coverage that the embodiment of the present invention provides, in the Makefile file of tested software Before appointment compiling option is set, it is also possible to including:
By in kernel corresponding for the positional information compiling of Gcov instrument corresponding for Gcov order to tested software.
Wherein, will kernel corresponding for above-mentioned positional information compiling to tested software be in order to the embodiment of the present invention needs to make Call with can normally realize it during Gcov order.It addition, above-mentioned steps whole realization is once, as long as i.e. using at first An above-mentioned steps is performed, it is ensured that kernel has its positional information, unless needed for changing its position letter during Gcov instrument Breath, otherwise repeatedly can realize calling for Gcov instrument according to this positional information.Specifically, above-mentioned steps can be wrapped Include: (1) performs makemenuconfig order, as shown in Figure 2;(2) General setup is selected to enter next interface, as Shown in Fig. 3;(3) select GCOV-based kernel profiling to enter next interface, and choose two in Fig. 4; (4) compiling and the loading of kernel are carried out, it is possible to use following statement realizes:
#make clean
#make bzImage–j 4
#make modules
#make modules_install
#make install
The method of testing of a kind of code coverage that the embodiment of the present invention provides, in the Makefile file of tested software Before appointment compiling option is set, it is also possible to including:
Include header file is added under the assigned catalogue that tested software is corresponding, it is achieved positional information is in kernel Compiling.
It should be noted that for some user mode codes code coverage test time, just with step S11 to step Rapid S12 there may be situation about reporting an error in compilation process, now, include header file only need to add tested software corresponding to Assigned catalogue under, wherein, it is intended that file specifically can be determined according to actual needs.
The method of testing of a kind of code coverage that the embodiment of the present invention provides, it is also possible to including:
On the code of test case, the number of times that corresponding code performs is marked according to preset rules.
Thus, it is possible to check the concrete implementation status of code, facilitate staff's acquisition to relevant information.
Below as a example by unit testing, use Gcov instrument and the Lcov instrument iscsi-scst block code to increasing income Carry out code coverage test, it is necessary first to clear and definite iscsi-scst block code is divided into kernel state and User space two kinds of Code, for kernel state code, uses introduced step to realize:
(1) corresponding file is hung:
mount-t debugfs none/sys/kernel/debug;
(2) plus compiling option in the Makefile file of iscsi-scst module:
EXTRA_CFLAGS+=-fprofile-arcs-ftest-coverage;
(3) generate gcno file after having compiled, and the gcno file generated is at/sys/kernel/debug/gcov/ Below home/iscsi-scst/kernel catalogue;
(4) loading iscsi-scst.ko module, to generate gcda file, and the gcda file generated is at/sys/ Below kernel/debug/gcov/home/iscsi-scst/kernel catalogue;
(5) to iscsi-scst.ko module performance element test case;
(6) by under gcno file copy to a file specified folder, such as/home/liubin, then in this catalogue Gcov order performed below;
As: Gcov/home/iscsi/iscsi.c carries out the code coverage test of iscsi.c file, each .c literary composition Part will carry out Gcov order;
(7) under general/sys/kernel/debug/gcov/home/iscsi-scst/kernel, corresponding gcda file is copied Shellfish, to under/home/liubin, performs Lcov order, acquisition html file.
And for user mode codes, need to realize through the following steps:
A, hang corresponding file:
mount-t debugfs none/sys/kernel/debug;
B, in the Makefile file of iscsi-scst module plus compiling option, be specifically as follows Makefile literary composition All of (CC) addition-fprofile-arcs ftest-coverage below in part, at/sys/kernel/ after having compiled Gcno file is generated below debug/gcov/home/iscsi-scst/kernel;
C, loading iscsi-scst.ko module, to generate gcda file, file is at/sys/kernel/debug/gcov/ home/iscsi-scst/kernel;
D, to iscsi-scst.ko module performance element test case;
E, by under gcno file copy to a file specified folder, such as/home/liubin, then in this catalogue Gcov order performed below;
F, general/sys/kernel/debug/gcov/home/iscsi-scst/kernel under corresponding gcda file copy Under/home/liubin, perform Lcov order, i.e. can get corresponding html file.
The embodiment of the present invention additionally provides the test device of a kind of code coverage, as it is shown in figure 5, may include that
Generation module 11, for arranging appointment compiling option, to generate correspondence in the Makefile file of tested software Gcno file;Load tested software, to generate corresponding gcda file;
Perform module 12, for performing the test case corresponding with tested software, and by code source corresponding for tested software File execution information in the process of implementation stores to gcno file;
Test module 13, for the code source file that tested software is corresponding being performed Gcov order based on gcno file, with The code coverage of tested software is tested, and the result of test gained is stored to gcda file;
Wherein, if tested software correspondence code is user mode codes, then appointment compiling option is set and is included in Makefile file adds after each $ (CC) and specifies compiling option;If tested software correspondence code is kernel state code, Then arrange appointment compiling option to include being arranged to the EXTRA_CFLAGS+ in Makefile file specify compiling option.
The test device of a kind of code coverage that the embodiment of the present invention provides, test module can also include:
Test cell, after the result of test gained being stored to gcda file, performs Lcov to gcda file Order, obtains the html file of correspondence.
The test device of a kind of code coverage that the embodiment of the present invention provides, it is also possible to including:
Collector, before arranging appointment compiling option in the Makefile file of tested software, orders Gcov The positional information compiling of the Gcov instrument that order is corresponding is in kernel corresponding to tested software.
The test device of a kind of code coverage that the embodiment of the present invention provides, collector can also include:
Compilation unit, before arranging appointment compiling option in the Makefile file of tested software, by include Header file adds under the assigned catalogue that tested software is corresponding, it is achieved positional information compiling in kernel.
The test device of a kind of code coverage that the embodiment of the present invention provides, it is also possible to including:
Indicate module, for marking, according to preset rules, the number of times that corresponding code performs on the code of test case.
In the test device of a kind of code coverage that the embodiment of the present invention provides, the explanation of relevant portion refers to this In the method for testing of a kind of code coverage that bright embodiment provides, the detailed description of corresponding part, does not repeats them here.
Described above to the disclosed embodiments, makes those skilled in the art be capable of or uses the present invention.To this The multiple amendment of a little embodiments will be apparent from for a person skilled in the art, and generic principles defined herein can With without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with principles disclosed herein and features of novelty the widest Scope.

Claims (10)

1. the method for testing of a code coverage, it is characterised in that including:
Appointment compiling option is set in the Makefile file of tested software, to generate corresponding gcno file;Load described Tested software, to generate corresponding gcda file;
Perform the test case corresponding with described tested software, and code source file corresponding for described tested software was being performed Execution information in journey stores to described gcno file;
Based on described gcno file, the code source file that described tested software is corresponding is performed Gcov order, with to described tested soft The code coverage of part is tested, and the result of test gained is stored to described gcda file;
Wherein, if described tested software correspondence code is user mode codes, then appointment compiling option is set and is included in described Makefile file adds after each $ (CC) described appointment and compiles option;If described tested software correspondence code is interior Core state code, then arrange appointment compiling option and include being arranged to the EXTRA_CFLAGS+ in described Makefile file described Specify compiling option.
Method the most according to claim 1, it is characterised in that the result of test gained is stored to described gcda file Afterwards, also include:
Described gcda file is performed Lcov order, obtains the html file of correspondence.
Method the most according to claim 2, it is characterised in that appointment is set in the Makefile file of tested software and compiles Before translating option, also include:
By in kernel corresponding for the positional information compiling of Gcov instrument corresponding for described Gcov order to described tested software.
Method the most according to claim 3, it is characterised in that appointment is set in the Makefile file of tested software and compiles Before translating option, also include:
Include header file is added under the assigned catalogue that described tested software is corresponding, it is achieved positional information is at described kernel In compiling.
Method the most according to claim 1, it is characterised in that also include:
On the code of described test case, the number of times that corresponding code performs is marked according to preset rules.
6. the test device of a code coverage, it is characterised in that including:
Generation module, for arranging appointment compiling option, to generate corresponding gcno in the Makefile file of tested software File;Load described tested software, to generate corresponding gcda file;
Perform module, for performing the test case corresponding with described tested software, and by code corresponding for described tested software Source file execution information in the process of implementation stores to described gcno file;
Test module, for the code source file that described tested software is corresponding being performed Gcov order based on described gcno file, Test with the code coverage to described tested software, and the result of test gained is stored to described gcda file;
Wherein, if described tested software correspondence code is user mode codes, then appointment compiling option is set and is included in described Makefile file adds after each $ (CC) described appointment and compiles option;If described tested software correspondence code is interior Core state code, then arrange appointment compiling option and include being arranged to the EXTRA_CFLAGS+ in described Makefile file described Specify compiling option.
Device the most according to claim 5, it is characterised in that described test module also includes:
Test cell, after the result of test gained being stored to described gcda file, performs described gcda file Lcov order, obtains the html file of correspondence.
Device the most according to claim 7, it is characterised in that also include:
Collector, before arranging appointment compiling option in the Makefile file of tested software, orders described Gcov In the positional information compiling kernel that extremely described tested software is corresponding of the Gcov instrument that order is corresponding.
Device the most according to claim 8, it is characterised in that described collector also includes:
Compilation unit, before arranging appointment compiling option in the Makefile file of tested software, by include head literary composition Part adds under the assigned catalogue that described tested software is corresponding, it is achieved positional information compiling in described kernel.
Device the most according to claim 6, it is characterised in that also include:
Indicate module, for marking, according to preset rules, the number of times that corresponding code performs on the code of described test case.
CN201610694732.4A 2016-08-19 2016-08-19 The method of testing of a kind of code coverage and device Pending CN106126430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610694732.4A CN106126430A (en) 2016-08-19 2016-08-19 The method of testing of a kind of code coverage and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610694732.4A CN106126430A (en) 2016-08-19 2016-08-19 The method of testing of a kind of code coverage and device

Publications (1)

Publication Number Publication Date
CN106126430A true CN106126430A (en) 2016-11-16

Family

ID=57278513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610694732.4A Pending CN106126430A (en) 2016-08-19 2016-08-19 The method of testing of a kind of code coverage and device

Country Status (1)

Country Link
CN (1) CN106126430A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729239A (en) * 2017-10-10 2018-02-23 郑州云海信息技术有限公司 A kind of code coverage statistical method, system, device and computer-readable storage medium
CN108829593A (en) * 2018-06-05 2018-11-16 平安壹钱包电子商务有限公司 Code coverage calculation and analysis methods, device, equipment and storage medium
CN112416773A (en) * 2020-11-23 2021-02-26 通号万全信号设备有限公司 Cross-platform data visualization method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110004867A1 (en) * 2009-07-01 2011-01-06 International Business Machines Corporation Automated level-based targeted test configuration
CN103365771A (en) * 2012-04-10 2013-10-23 阿里巴巴集团控股有限公司 Method and equipment for obtaining code coverage rate
CN104714882A (en) * 2013-12-17 2015-06-17 腾讯科技(深圳)有限公司 Code information processing method and device
CN105760297A (en) * 2016-02-02 2016-07-13 四川长虹电器股份有限公司 Test case generating method based on user feedback

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110004867A1 (en) * 2009-07-01 2011-01-06 International Business Machines Corporation Automated level-based targeted test configuration
US20120192159A1 (en) * 2009-07-01 2012-07-26 International Business Machines Corporation Automated level-based targeted test configuration
CN103365771A (en) * 2012-04-10 2013-10-23 阿里巴巴集团控股有限公司 Method and equipment for obtaining code coverage rate
CN104714882A (en) * 2013-12-17 2015-06-17 腾讯科技(深圳)有限公司 Code information processing method and device
CN105760297A (en) * 2016-02-02 2016-07-13 四川长虹电器股份有限公司 Test case generating method based on user feedback

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KEVIN_JI: ""覆盖率测试工具gcov & lcov使用手册"", 《HTTP://BLOG.CSDN.NET/KEVIN_JI/ARTICLE/DETAILS/50885680》 *
MICHAEL STAPELBERG: ""Code Coverage testing in C with gcov and lcov"", 《HTTP:// MICHAEL.STAPELBERG.DE/ARTIKEL/CODE_COVERAGE_WITH_LCOV》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729239A (en) * 2017-10-10 2018-02-23 郑州云海信息技术有限公司 A kind of code coverage statistical method, system, device and computer-readable storage medium
CN108829593A (en) * 2018-06-05 2018-11-16 平安壹钱包电子商务有限公司 Code coverage calculation and analysis methods, device, equipment and storage medium
CN108829593B (en) * 2018-06-05 2023-12-05 平安壹钱包电子商务有限公司 Code coverage rate calculation and analysis method, device, equipment and storage medium
CN112416773A (en) * 2020-11-23 2021-02-26 通号万全信号设备有限公司 Cross-platform data visualization method

Similar Documents

Publication Publication Date Title
CN104461898B (en) Using the method for test, control server, test terminal and system
EP1113367B1 (en) Automated regression testing of workstation software
US8196113B2 (en) Realtime creation of datasets in model based testing
Agrawal et al. Mining system tests to aid software maintenance
EP1085417A2 (en) Method and system for forming skeletons for generating verification systems
US20110202901A1 (en) Automated software testing and validation system
US20070094541A1 (en) Method and apparatus for generating test execution sequences automatically for a software testing process
EP0406602A2 (en) Method and apparatus for debugging parallel programs by serialization
Groce et al. An extensible, regular-expression-based tool for multi-language mutant generation
Griebe et al. A model-based approach to test automation for context-aware mobile applications
EP1388064A2 (en) System and method for combinatorial test generation in a compatibility testing environment
CN106776334A (en) Based on annotation generation method of test example and device
CN104268310A (en) Method for calling UVM verification environment through special graphical interface
CN1577274A (en) Automation emulation method and system
CN106126430A (en) The method of testing of a kind of code coverage and device
Bothell Act-r 7 reference manual
Bennett et al. A transformation system for maintenance-turning theory into practice
CN109558318A (en) A kind of code administration method and code storage distributed system
Kim et al. A new hybrid algorithm for software fault localization
CN114548027A (en) Method for tracking signal in verification system, electronic device and storage medium
Hill et al. Pin++: an object-oriented framework for writing pintools
CN111143228A (en) Test code generation method and device based on decision table method
CN109324973A (en) A kind of method for testing software, device, equipment and computer readable storage medium
Acharya et al. Model based test case prioritization for testing component dependency in cbsd using uml sequence diagram
Busch et al. Model transformers for test generation from system models

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116