CN113722233A - Code coverage rate determining method, system, storage medium and electronic equipment - Google Patents
Code coverage rate determining method, system, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113722233A CN113722233A CN202111074532.6A CN202111074532A CN113722233A CN 113722233 A CN113722233 A CN 113722233A CN 202111074532 A CN202111074532 A CN 202111074532A CN 113722233 A CN113722233 A CN 113722233A
- Authority
- CN
- China
- Prior art keywords
- code
- coverage rate
- data information
- information
- code coverage
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3676—Test management for coverage analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention provides a code coverage rate determining method, a code coverage rate determining system, a storage medium and electronic equipment, which are applied to the field of artificial intelligence, the field of cloud computing or the field of finance. The method comprises the following steps: acquiring first data information and second data information; the first data information is exec information of unit test, and the second data information is exec information of integration test; merging the first data information and the second data information under the condition of the same class to obtain merged information; and obtaining an executable code of the test product, and carrying out coverage rate statistics on the combined information and the executable code by using the jacococ to obtain a comprehensive code coverage rate. According to the invention, the code coverage rate is tested through the merging unit and the code coverage rate is tested integrally, so that the code coverage rate display data is more complete.
Description
Technical Field
The present invention relates to the field of system testing technologies, and in particular, to a method, a system, a storage medium, and an electronic device for determining code coverage.
Background
The code coverage rate is used for describing the proportion and the degree of the source code tested in the program, and is divided into unit test code coverage rate and integrated test code coverage rate. The unit test code coverage rate belongs to the static scanning coverage rate, and in a development stage, all modules are not integrated into a whole; the coverage rate of the integrated test codes belongs to the dynamic scanning coverage rate, and is the integral coverage rate of the codes when a product or a product module runs in an integrated test environment or a functional test environment.
Unit test code coverage is typically statistically calculated using a Sonar (code quality platform) integrated static analysis tool, such as the code coverage analysis tool Jacoco. And the coverage rate of the integration test code is analyzed by using a jaccoagent technology to obtain dynamic code coverage rate data in the integration environment. Because the calculation of the coverage rate of the unit test codes and the calculation of the coverage rate of the integrated test codes are in two different stages, the coverage rate of the unit test codes and the coverage rate of the integrated test codes cannot be displayed at the same time, and the whole condition of the coverage rate of the working codes in the stages cannot be reflected completely.
Disclosure of Invention
Embodiments of the present invention provide a method, a system, a storage medium, and an electronic device for determining code coverage, so that code coverage display data is more complete by combining unit test code coverage and integrated test code coverage. The specific technical scheme is as follows:
the invention provides a code coverage rate determining method, which comprises the following steps:
acquiring first data information and second data information; the first data information is exec information of unit test, and the second data information is exec information of integration test;
merging the first data information and the second data information under the condition of the same class to obtain merged information;
and acquiring an executable code of the test product, and carrying out coverage rate statistics on the combined information and the executable code by using jacococ to obtain a comprehensive code coverage rate.
Optionally, the merging the first data information and the second data information under the condition of the same class to obtain merged information specifically includes:
and carrying out OR operation on the first data information and the second data information under the condition of the same class to obtain merged information.
Optionally, the method further comprises:
carrying out coverage rate statistics on the first data information and the executable code by using jacococ to obtain the coverage rate of the unit test code;
and carrying out coverage rate statistics on the second data information and the executable code by using the jacococ to obtain the coverage rate of the integrated test code.
Optionally, the method further comprises:
and generating a coverage rate line graph according to the comprehensive code coverage rate, the unit test code coverage rate and the integrated test code coverage rate.
Alternatively,
the first data information is obtained from a unit test environment through Jenkins;
the second data information is obtained from the integrated test environment through a socket.
Optionally, after obtaining the composite code coverage, the method further comprises:
storing the integrated code coverage in a mongodb database.
The present invention also provides a code coverage rate determination system, comprising:
the acquisition module is used for acquiring first data information and second data information; the first data information is exec information of unit test, and the second data information is exec information of integration test;
the merging module is used for merging the first data information and the second data information under the condition of the same class to obtain merged information;
and the first code coverage rate determining module is used for obtaining an executable code of the test product, and carrying out coverage rate statistics on the combined information and the executable code by using jacococ to obtain a comprehensive code coverage rate.
Optionally, the method further comprises:
the second code coverage rate determining module is used for carrying out coverage rate statistics on the first data information and the executable code by using jaccoc to obtain the coverage rate of the unit test code;
and the third code coverage rate determining module is used for carrying out coverage rate statistics on the second data information and the executable code by using jacococ to obtain the coverage rate of the integrated test code.
The present invention also provides a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements the code coverage determination method described above.
The present invention also provides an electronic device comprising:
at least one processor, and at least one memory, bus connected with the processor;
the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory to execute the code coverage rate determination method.
According to the code coverage rate determining method, the code coverage rate determining system, the storage medium and the electronic device, the obtained first data information is exec information of unit test, the obtained second data information is exec information of integration test, the first data information and the second data information are combined under the same-class condition to obtain combined information, it can be guaranteed that coverage rate statistics is carried out on the combined information and the executable code by using jacococ under the condition that the code is not compiled, comprehensive code coverage rate is obtained, and the obtained comprehensive code coverage rate enables code coverage rate display data to be more complete. In addition, the invention can also show the unit test code coverage, the integrated test code coverage and the comprehensive code coverage through the coverage line graph.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow diagram illustrating a method for code coverage determination in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of code coverage determination in accordance with another exemplary embodiment;
FIG. 3 is a block diagram illustrating a code coverage determination system in accordance with another exemplary embodiment;
FIG. 4 is a block diagram illustrating a code coverage determination system in accordance with another exemplary embodiment;
FIG. 5 is a block diagram illustrating an electronic device in accordance with another example embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating a code coverage determination method according to an exemplary embodiment, and as shown in fig. 1, a code coverage determination method includes the following steps.
Step 101: acquiring first data information and second data information; the first data information is exec information of unit test, and the second data information is exec information of integration test.
When the developer conducts unit test, the developer conducts unit test coverage analysis by means of some tools which are implemented by jacoco as an underlying layer, such as a Sonar tool. Sonar is a code quality platform used for detecting unit test code coverage rate, does not perform code analysis, but can integrate each static analysis tool and other software development test tools, and evaluates the quality of software according to a certain quality model, such as iso-9126, based on the result data of the integration tools. Jacoco is a code coverage analysis tool, byte code instrumentation is carried out on a JVM layer, runtime information is collected, an interface for analyzing the runtime information is provided, and developers can conveniently count various indexes. Jacoco can be integrated in Eclipse, Sonar, Jekins and other environments, and full coverage rate calculation of unit tests of running and automatic running in the development process is achieved.
When the Sonar is used, the Jacoco plug-in is installed firstly, then the codes are executed, the exec information is collected, and the exec information is stored in an exec file in a file format. The first data information of the invention is exec information of unit test, and is obtained from a unit test environment through Jenkins. And the development end compiles exec information tested by the timing pushing unit of the pushing script to the Argus platform through a Jenkins continuous integration tool. The Argus platform is a code coverage rate statistical tool platform, and dynamic code coverage rate data under the integrated environment are obtained by utilizing jacocoagent technology analysis. The Argus platform needs to acquire exec information of the integrated environment through socket connection, store the exec information of the integrated environment in second data information, and load the first data information into a memory.
Step 102: and combining the first data information and the second data information under the condition of the same class to obtain combined information.
and carrying out OR operation on the first data information and the second data information under the condition of the same class to obtain merged information.
Since the first data information and the second data information are exec information, the exec information is a character string represented by 0 and 1, the description code is not tested when the exec information is 0, and the description code is tested when the exec information is 1. According to the invention, the first data information and the second data information exec information are merged together through an ExecFileLoader provided by jacoco to obtain merged exec information.
When merging is performed, it is necessary to ensure that the classes of the code are the same, and if the classes are recompiled, it is necessary to start counting from 0. If 0 in the exec information of the first data information and 0 in the exec information of the second data information are merged when the classes are the same, and the merging result obtained through the or operation is still 0, the code is not tested. If 0 in the exec information of the first data information is combined with 1 in the exec information of the second data information, and the combination result obtained through OR operation is 1, the code is tested, even if the code is not tested in unit test, the code is tested in integration test, and under the condition that the code is not recompiled, the first data information and the second data information are combined and operated, so that the obtained data can be more comprehensive and reasonable in subsequent code coverage rate calculation, and the practicability of a coverage rate tool is improved.
Step 103: and obtaining an executable code of the test product, and carrying out coverage rate statistics on the combined information and the executable code by using the jacococ to obtain a comprehensive code coverage rate.
After the merged exec information and the executable code of the test product are obtained, statistical analysis is further performed by using an api (Application Program Interface) of jacoco, and the merged coverage rate can be obtained.
As an alternative embodiment, the invention stores the integrated code coverage in the mongodb database after obtaining the integrated code coverage. The front-end program can obtain the data to be displayed from the database.
The main flow of code coverage provided by the invention is in the mainjobclass, and the specific flow comprises the following steps: loading the mianJob class to call a run () method, acquiring configuration task information, acquiring ftp configuration information according to a product and an environment, initializing common parameters, pulling data and merging the data according to the environment and paths such as a product splicing base class, a bit code version, a current version and the like, downloading the current class (executable code of a test product), and then performing global data analysis and/or incremental data analysis.
Fig. 2 is a flowchart illustrating a code coverage determining method according to another exemplary embodiment, and as shown in fig. 2, a code coverage determining method includes the following steps.
Step 201: acquiring first data information and second data information; the first data information is exec information of unit test, and the second data information is exec information of integration test.
The first data information is obtained from a unit test environment through Jenkins; the second data information is obtained from the integrated test environment through the socket.
Step 202: and combining the first data information and the second data information under the condition of the same class to obtain combined information.
and carrying out OR operation on the first data information and the second data information under the condition of the same class to obtain merged information.
Step 203: and obtaining an executable code of the test product, and carrying out coverage rate statistics on the combined information and the executable code by using the jacococ to obtain a comprehensive code coverage rate.
As an alternative embodiment, the invention stores the integrated code coverage in the mongodb database after obtaining the integrated code coverage.
The steps 201-203 are similar to the steps 101-103, and are not described again.
Step 204: and carrying out coverage rate statistics on the first data information and the executable code by using the jacococ to obtain the coverage rate of the unit test code.
Step 205: and carrying out coverage rate statistics on the second data information and the executable code by using the jacococ to obtain the coverage rate of the integrated test code.
As an optional implementation, the method further includes: and generating a coverage rate line graph according to the comprehensive code coverage rate, the unit test code coverage rate and the integrated test code coverage rate.
The present invention further illustrates the code coverage determination method provided by the present invention by the following steps.
Firstly, acquiring configuration information, and inquiring ftp configuration information corresponding to a product from a mongodb library according to the acquired product environment parameters. Then, all the variables common to the classes are determined, and the download path of the variables and the initialization parameters common to the projects to the local is determined. And acquiring runtime information, wherein the test runtime information is mainly used for merging counting, if the class is recompiled, counting is started from 0, and otherwise, merging execution (exec) information. By rewriting run () method, successively executing initialization method init (), downloading execution (exec) information load method, combining unit testing exec information and storing exec information, recording the update time of exec information, storing the update time and storing the execution information in mongo table. Downloading a class file of a current time version, wherein the class file is an executable code of a product, and downloading jar, war and a directory to the local through a downloadFile () in an SFTP service after connection succeeds by connecting the SFTP. When the global coverage rate is calculated, the class coverage rate and the row coverage rate are calculated in a statistical mode, class coverage rate statistical results are stored, row coverage state information is stored in a row full coverage state table and a row increment coverage state information table, the global coverage rate is calculated and stored in a global coverage rate table, finally, time is updated, and the updated time is stored. When the incremental coverage rate is calculated, a byte file of a current version is generated, a baseline code file is obtained, and then the byte file is decompiled. And comparing the byte file of the current version with the byte file of the baseline version to generate a comparison report, analyzing the comparison report file, and obtaining and storing the increment code line. And finally, generating an incremental coverage report table, acquiring row modification information and row coverage information of the class, counting and calculating the coverage of the incremental class and the total global incremental coverage information according to the state of the row, and respectively storing the coverage of the incremental class and the total global incremental coverage information table.
The invention can combine the integrated test code coverage rate and the unit test coverage rate in real time, the unit test is not limited in time, environment and file number, as long as the bottom layer uses Jacoco, the unit test can be combined with any integrated product environment, so that the code coverage rate display data is more complete, and the practicability of the tool is improved; the coverage rate of the integrated environment, the coverage rate of unit test, the unit integration and combination coverage rate and the unit function combination coverage rate can be independently displayed, and the function display is more flexible.
The present invention also provides a code coverage rate determining system, as shown in fig. 3, the system comprising:
the obtaining module 301 is configured to obtain the first data information and the second data information. The first data information is exec information of unit test, and the second data information is exec information of integration test.
The first data information is obtained from the unit testing environment through Jenkins, and the second data information is obtained from the integrated testing environment through socket.
The merging module 302 is configured to merge the first data information and the second data information under the condition of the same class, so as to obtain merged information.
The merging module 302 is specifically configured to:
and carrying out OR operation on the first data information and the second data information under the condition of the same class to obtain merged information.
And the first code coverage rate determining module 303 is configured to obtain an executable code of the test product, and perform coverage rate statistics on the combined information and the executable code by using jacococ to obtain a comprehensive code coverage rate.
As an optional implementation, the system further includes:
and the storage module is used for storing the comprehensive code coverage rate into the mongodb database.
The present invention also provides a code coverage rate determining system, as shown in fig. 4, the system including:
the obtaining module 401 is configured to obtain the first data information and the second data information. The first data information is exec information of unit test, and the second data information is exec information of integration test.
A merging module 402, configured to merge the first data information and the second data information under the condition of the same class, so as to obtain merged information.
And a first code coverage rate determining module 403, configured to obtain an executable code of the test product, and perform coverage rate statistics on the combined information and the executable code by using jacococ to obtain a comprehensive code coverage rate.
And a second code coverage rate determining module 404, configured to perform coverage rate statistics on the first data information and the executable code by using jaccoc, so as to obtain a unit test code coverage rate.
And a third code coverage rate determining module 405, configured to perform coverage rate statistics on the second data information and the executable code by using jaccoc, so as to obtain an integrated test code coverage rate.
As an optional implementation, the system further includes:
and the storage module is used for storing the comprehensive code coverage rate into the mongodb database.
And the coverage rate line graph generating module is used for generating a coverage rate line graph according to the comprehensive code coverage rate, the unit test code coverage rate and the integrated test code coverage rate.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, which, when executed by a processor, implements the code coverage determination method described above.
An embodiment of the present invention provides an electronic device, as shown in fig. 5, an electronic device 50 includes at least one processor 501, at least one memory 502 connected to the processor 501, and a bus 503; the processor 501 and the memory 502 complete communication with each other through the bus 503; the processor 501 is used to call program instructions in the memory 502 to perform the code coverage determination method described above. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application also provides a computer program product adapted to perform a program, when executed on a data processing device, of initializing the steps comprised by the code coverage determination method described above.
It should be noted that the code coverage rate determining method, the code coverage rate determining system, the storage medium and the electronic device provided by the invention can be used in the field of artificial intelligence, the field of cloud computing or the field of finance. The foregoing is merely an example, and does not limit the application fields of the code coverage determining method, system, storage medium, and electronic device provided by the present invention.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, systems and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method for code coverage determination, comprising:
acquiring first data information and second data information; the first data information is exec information of unit test, and the second data information is exec information of integration test;
merging the first data information and the second data information under the condition of the same class to obtain merged information;
and acquiring an executable code of the test product, and carrying out coverage rate statistics on the combined information and the executable code by using jacococ to obtain a comprehensive code coverage rate.
2. The method for determining code coverage according to claim 1, wherein the merging the first data information and the second data information under the condition of the same class to obtain merged information specifically includes:
and carrying out OR operation on the first data information and the second data information under the condition of the same class to obtain merged information.
3. The code coverage determination method of claim 1, further comprising:
carrying out coverage rate statistics on the first data information and the executable code by using jacococ to obtain the coverage rate of the unit test code;
and carrying out coverage rate statistics on the second data information and the executable code by using the jacococ to obtain the coverage rate of the integrated test code.
4. The code coverage determination method of claim 3, further comprising:
and generating a coverage rate line graph according to the comprehensive code coverage rate, the unit test code coverage rate and the integrated test code coverage rate.
5. The code coverage determination method of claim 1,
the first data information is obtained from a unit test environment through Jenkins;
the second data information is obtained from the integrated test environment through a socket.
6. The code coverage determination method of claim 1, wherein after obtaining the composite code coverage, the method further comprises:
storing the integrated code coverage in a mongodb database.
7. A code coverage determination system, comprising:
the acquisition module is used for acquiring first data information and second data information; the first data information is exec information of unit test, and the second data information is exec information of integration test;
the merging module is used for merging the first data information and the second data information under the condition of the same class to obtain merged information;
and the first code coverage rate determining module is used for obtaining an executable code of the test product, and carrying out coverage rate statistics on the combined information and the executable code by using jacococ to obtain a comprehensive code coverage rate.
8. The code coverage determination system of claim 7, further comprising:
the second code coverage rate determining module is used for carrying out coverage rate statistics on the first data information and the executable code by using jaccoc to obtain the coverage rate of the unit test code;
and the third code coverage rate determining module is used for carrying out coverage rate statistics on the second data information and the executable code by using jacococ to obtain the coverage rate of the integrated test code.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program which, when executed by a processor, implements the code coverage determination method of any one of claims 1-6.
10. An electronic device, comprising:
at least one processor, and at least one memory, bus connected with the processor;
the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the code coverage determination method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111074532.6A CN113722233A (en) | 2021-09-14 | 2021-09-14 | Code coverage rate determining method, system, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111074532.6A CN113722233A (en) | 2021-09-14 | 2021-09-14 | Code coverage rate determining method, system, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113722233A true CN113722233A (en) | 2021-11-30 |
Family
ID=78683606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111074532.6A Pending CN113722233A (en) | 2021-09-14 | 2021-09-14 | Code coverage rate determining method, system, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113722233A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114443027A (en) * | 2022-01-25 | 2022-05-06 | 杭州云合智网技术有限公司 | Reuse method of coverage collection code, computer readable medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100058295A1 (en) * | 2008-09-02 | 2010-03-04 | International Business Machines Corporation | Dynamic Test Coverage |
CN109388566A (en) * | 2018-09-27 | 2019-02-26 | 北京城市网邻信息技术有限公司 | A kind of code coverage rate analysis method, apparatus, equipment and storage medium |
CN112948249A (en) * | 2021-03-03 | 2021-06-11 | 浙江百应科技有限公司 | Method and device for realizing incremental code coverage rate statistics based on Jacoco |
-
2021
- 2021-09-14 CN CN202111074532.6A patent/CN113722233A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100058295A1 (en) * | 2008-09-02 | 2010-03-04 | International Business Machines Corporation | Dynamic Test Coverage |
CN109388566A (en) * | 2018-09-27 | 2019-02-26 | 北京城市网邻信息技术有限公司 | A kind of code coverage rate analysis method, apparatus, equipment and storage medium |
CN112948249A (en) * | 2021-03-03 | 2021-06-11 | 浙江百应科技有限公司 | Method and device for realizing incremental code coverage rate statistics based on Jacoco |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114443027A (en) * | 2022-01-25 | 2022-05-06 | 杭州云合智网技术有限公司 | Reuse method of coverage collection code, computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20050015752A1 (en) | Static analysis based error reduction for software applications | |
CN110554965B (en) | Automated fuzz testing method, related equipment and computer readable storage medium | |
CN110795357B (en) | Program monitoring method and device | |
KR20090017598A (en) | Method and system for analyzing software | |
US8677325B2 (en) | Application services source refactoring | |
CN110134583B (en) | Software testing and data processing method and device | |
CN108595319B (en) | Function selection method and server | |
US20130179867A1 (en) | Program Code Analysis System | |
US9779014B2 (en) | Resilient mock object creation for unit testing | |
CN103186463B (en) | Determine the method and system of the test specification of software | |
CN105468508A (en) | Code testing method and apparatus | |
CN115858393A (en) | Software test range evaluation method and system based on call chain | |
CN112148590B (en) | Method, device and equipment for determining code coverage rate | |
CN113806231A (en) | Code coverage rate analysis method, device, equipment and medium | |
US7624381B1 (en) | Portable detection of start and completion of object construction | |
CN110334012B (en) | Risk assessment method and device | |
CN112346981A (en) | Joint debugging test coverage rate detection method and system | |
CN111240987A (en) | Migration program detection method and device, electronic equipment and computer readable storage medium | |
US9189372B2 (en) | Trace coverage analysis | |
CN113688031B (en) | Test positioning method based on byte code enhancement technology | |
CN118779247B (en) | Application program testing method, device, storage medium and program product | |
CN113722233A (en) | Code coverage rate determining method, system, storage medium and electronic equipment | |
CN112099838A (en) | Method, device and storage medium for determining version difference | |
CN113220586A (en) | Automatic interface pressure test execution method, device and system | |
CN111367796B (en) | Application program debugging method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |