CN110532174A - Calculate method, apparatus, computer equipment and the storage medium of incremental code coverage rate - Google Patents
Calculate method, apparatus, computer equipment and the storage medium of incremental code coverage rate Download PDFInfo
- Publication number
- CN110532174A CN110532174A CN201910672301.1A CN201910672301A CN110532174A CN 110532174 A CN110532174 A CN 110532174A CN 201910672301 A CN201910672301 A CN 201910672301A CN 110532174 A CN110532174 A CN 110532174A
- Authority
- CN
- China
- Prior art keywords
- code
- file
- measured
- incremental
- subfile
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000012360 testing method Methods 0.000 claims abstract description 29
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 14
- 230000008859 change Effects 0.000 claims description 55
- 238000004590 computer program Methods 0.000 claims description 15
- 241000208340 Araliaceae Species 0.000 claims description 5
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 5
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 5
- 235000008434 ginseng Nutrition 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 230000000694 effects Effects 0.000 description 6
- 230000001965 increasing effect Effects 0.000 description 5
- 238000013507 mapping Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000037433 frameshift Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3676—Test management for coverage analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application provides a kind of method, apparatus, computer equipment and storage medium for calculating incremental code coverage rate.This method comprises: obtaining edition code file to be measured and comparing edition code file;Each subfile to be measured and the subfile progress code that compares corresponding with subfile to be measured are compared according to pre-set code alignment algorithm, to obtain comparison result;If comparison result is subfile to be measured, relative to subfile is compared, there are coding changes, generate incremental code referring to table;According to incremental code referring to table, edition code file to be measured is obtained relative to the incremental code file for comparing edition code file;Obtain the overall code coverage rate information of edition code file to be measured;According to overall code coverage rate information, incremental code referring to table and incremental code file, the coverage rate information of incremental code file is generated.This method is based on testing tool technology, can obtain the coverage rate information of incremental code, convenient for tester to improve testing efficiency.
Description
Technical field
This application involves field of computer technology more particularly to a kind of method, apparatus for calculating incremental code coverage rate, meter
Calculate machine equipment and storage medium.
Background technique
The product iteration of internet industry is getting faster, and in order to guarantee the quality of product, unit testing effect should not be underestimated.
For history item, the unit testing code of a large amount of legacy code is lacked.The unit testing code of the original code of completion at
This is very big, and it is not significant to produce effects.In this case, coverage rate inspection and measurement are carried out to newly-increased code, just having can
Row.However existing coverage rate statistical tool is merely able to count unit testing use-case to the level of coverage of all codes, and
Developer and tester are often concerned with the coverage data of incremental code.
Summary of the invention
This application provides a kind of method, apparatus, computer equipment and storage mediums for calculating incremental code coverage rate, can
The coverage rate information of incremental code is obtained, convenient for tester to improve testing efficiency and effect.
In a first aspect, this application provides a kind of methods for calculating incremental code coverage rate comprising:
It obtains edition code file to be measured and compares edition code file, wherein the edition code file to be measured includes
Multiple subfiles to be measured, the comparison edition code file include multiple comparison subfiles, and each subfile to be measured is corresponding
The comparison subfile of existence anduniquess;According to pre-set code alignment algorithm to each subfile to be measured and with the Ziwen to be measured
The corresponding comparison subfile of part carries out code comparison, to obtain comparison result;If comparison result is the subfile to be measured
Relative to the comparison subfile, there are coding changes, generate incremental code referring to table, the incremental code includes institute referring to table
State the line number of the file name and the subfile to be measured of subfile to be measured relative to the change code line for comparing subfile;
According to the incremental code referring to table, the edition code file to be measured is obtained relative to the increasing for comparing edition code file
Measure code file, wherein the incremental code file includes the file name and the subfile to be measured of the subfile to be measured
Under incremental code;The edition code file to be measured is tested, to obtain the entirety of the edition code file to be measured
Code coverage information;According to the overall code coverage rate information, the incremental code referring to table and the incremental code
File generates the coverage rate information of the incremental code file.
Second aspect, this application provides a kind of calculating incremental code coverage rate devices comprising:
First acquisition unit, for obtaining edition code file to be measured and comparing edition code file, wherein described to be measured
Edition code file includes multiple subfiles to be measured, and the comparison edition code file includes multiple comparison subfiles, Mei Yisuo
State the comparison subfile that subfile to be measured corresponds to existence anduniquess;Comparing unit is used for according to pre-set code alignment algorithm to each
The subfile to be measured and it is corresponding with the subfile to be measured it is described compare subfile and carry out code compare, compare knot to obtain
Fruit;Incremental code is referring to table generation unit, if being the subfile to be measured relative to the comparison subfile for comparison result
There are coding change, incremental code is generated referring to table, the incremental code includes the filename of the subfile to be measured referring to table
Claim and the subfile to be measured is relative to the line number for changing code line for comparing subfile;Second acquisition unit is used for root
According to the incremental code referring to table, the edition code file to be measured is obtained relative to the increment for comparing edition code file
Code file, wherein the incremental code file includes under the file name and the subfile to be measured of the subfile to be measured
Incremental code;Third acquiring unit, for testing the edition code file to be measured, to obtain the version to be measured
The overall code coverage rate information of code file;Coverage rate information generating unit, for being believed according to the overall code coverage rate
Breath, the incremental code generate the coverage rate information of the incremental code file referring to table and the incremental code file.
The third aspect, the application provide a kind of computer equipment again, including memory, processor and are stored in described deposit
On reservoir and the computer program that can run on the processor, the processor realize this when executing the computer program
The method of the described in any item calculating incremental code coverage rates provided is provided.
Fourth aspect, present invention also provides a kind of storage mediums, wherein the storage medium is stored with computer program,
The computer program makes the processor execute described in any item calculating increasings provided by the present application when being executed by a processor
The method for measuring code coverage.
The application provides a kind of method, apparatus, computer equipment and storage medium for calculating incremental code coverage rate.The meter
The method for calculating incremental code coverage rate obtains edition code file to be measured and compares edition code file, wherein the version to be measured
This code file includes multiple subfiles to be measured, and the comparison edition code file includes multiple comparison subfiles, each described
Subfile to be measured corresponds to the comparison subfile of existence anduniquess;According to pre-set code alignment algorithm to each subfile to be measured and
It is corresponding with the subfile to be measured it is described compare subfile and carry out code compare, to obtain comparison result;If comparison result is
There are coding changes relative to the comparison subfile for the subfile to be measured, generate incremental code referring to table, the increment generation
Code referring to table include the subfile to be measured file name and the subfile to be measured relative to it is described compare to subfile more
Change the line number of code line;According to the incremental code referring to table, the edition code file to be measured is obtained relative to the comparison
The incremental code file of edition code file, wherein the incremental code file includes the file name of the subfile to be measured
With the incremental code under the subfile to be measured;The edition code file to be measured is tested, to obtain the version to be measured
The overall code coverage rate information of this code file;According to the overall code coverage rate information, the incremental code referring to table
And the incremental code file, generate the coverage rate information of the incremental code file.The calculating incremental code coverage rate
Method can obtain the coverage rate information of incremental code, convenient for tester to improve testing efficiency and effect.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the method provided by the embodiments of the present application for calculating incremental code coverage rate;
Fig. 2 is the sub-process schematic diagram of the method provided by the embodiments of the present application for calculating incremental code coverage rate;
Fig. 3 is the sub-process schematic diagram of the method for the calculating incremental code coverage rate that the another embodiment of the application provides;
Fig. 4 is the sub-process schematic diagram of the method for the calculating incremental code coverage rate that another embodiment of the application provides;
Fig. 5 is the schematic block diagram provided by the embodiments of the present application for calculating incremental code coverage rate device;
Fig. 6 is the schematic block diagram for the calculating incremental code coverage rate device that the another embodiment of the application provides;
Fig. 7 is the schematic block diagram for the calculating incremental code coverage rate device that the another embodiment of the application provides;
Fig. 8 is the schematic block diagram for the calculating incremental code coverage rate device that another embodiment of the application provides;
Fig. 9 is the schematic block diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, Fig. 1 is the process signal of the method provided by the embodiments of the present application for calculating incremental code coverage rate
Figure.As shown in Figure 1, the method for the calculating incremental code coverage rate includes step S101~S106.
S101, it obtains edition code file to be measured and compares edition code file, wherein the edition code file to be measured
Including multiple subfiles to be measured, the comparison edition code file includes multiple comparison subfiles, each subfile to be measured
The comparison subfile of corresponding existence anduniquess.
In embodiments of the present invention, by carrying out code comparison to edition code file to be measured and comparison edition code file
For determining the incremental code of the edition code file to be measured and the coverage rate information of the incremental code.Wherein, institute
Stating comparison edition code file can be initial version code file, be also possible to the code file of other versions.It is described to be measured
Edition code file includes multiple subfiles to be measured, and the comparison edition code file includes multiple comparison subfiles.In this reality
It applies in example, sum and the comparer for comparing edition code file of the subfile to be measured in the edition code file to be measured
The sum of file is consistent, and each subfile to be measured corresponds to the comparison subfile of existence anduniquess, i.e., the described Ziwen to be measured
Part and described compare between subfile that there are subfile mapping relations.The building of the subfile mapping relations is specifically as follows:
The subfile mapping relations are constructed with the code function for comparing subfile according to subfile to be measured.For example, subfile packet to be measured
The first subfile to be measured is included, the comparison subfile includes the first comparison subfile;If the first subfile to be measured is compared with first
The code function of subfile is identical, then the first subfile to be measured is mapped in the first comparison subfile.It is mapped by the subfile
Relationship, it may be determined that the corresponding comparison subfile of the subfile to be measured.
S102, according to pre-set code alignment algorithm to each subfile to be measured and corresponding with the subfile to be measured
The comparison subfile carries out code comparison, to obtain comparison result.
It can determine whether the subfile to be measured under the edition code file to be measured relative to institute by pre-set code alignment algorithm
Stating the comparison subfile compared under edition code file whether there is coding change, wherein the coding change may include code
The operations such as deletion, code revision, code addition.Pre-set code alignment algorithm includes but is not limited to: BeyondCompare,
UltraCompare etc..Wherein BeyondCompare is mainly used for merging and comparing source code, passes through the code alignment algorithm
It obtains the difference of file, and can realize that the color using different distinguishes the byte of difference, be conducive to check code
Different piece.UltraCompare is mainly used for documents content, can be applied to compare binary mode, Folder schema and
Text Mode, while can also be achieved merging, synchronous relatively text etc. operation.
If S103, comparison result is the subfiles to be measured, relative to the comparison subfile, there are coding changes, generate
For incremental code referring to table, the incremental code includes the file name and the subfile to be measured of the subfile to be measured referring to table
Line number relative to the change code line for comparing subfile.
In embodiments of the present invention, if comparison result is that there are generations relative to the comparison subfile for the subfile to be measured
Frameshift alteration then generates incremental code referring to table.The incremental code is used to record the filename of the subfile to be measured referring to table
Claim and the subfile to be measured is relative to the line number for changing code line for comparing subfile.If comparison result is described
There are coding changes relative to the comparison subfile for subfile to be measured, according to the file name of the subfile to be measured and institute
The line number that subfile to be measured is stated relative to the change code line for comparing subfile generates incremental code referring to table.
S104, according to the incremental code referring to table, obtain the edition code file to be measured relative to the comparison version
The incremental code file of this code file, wherein the incremental code file include the subfile to be measured file name and
Incremental code under the subfile to be measured.
In embodiments of the present invention, the incremental code referring to had recorded in table the subfile to be measured file name and
The subfile to be measured passes through the filename of the subfile to be measured relative to the change code line line number for comparing subfile
Title and the change code line line number, can obtain under the subfile to be measured, the code line where the change code line line number,
The code line is the subfile to be measured relative to the subfile incremental code for comparing subfile, is gathered each described
The subfile incremental code of subfile to be measured then can get the edition code file to be measured relative to the comparison edition code
The incremental code file of file.
S105, the edition code file to be measured is tested, to obtain the entirety of the edition code file to be measured
Code coverage information.
In embodiments of the present invention, by testing the edition code file to be measured, overall code can be obtained and covered
Lid rate information.
S106, according to the overall code coverage rate information, the incremental code referring to table and the incremental code text
Part generates the coverage rate information of the incremental code file.
In embodiments of the present invention, by obtaining the overall code coverage rate information, and joined according to the incremental code
According to table and the incremental code file, the edition code file to be measured can be got relative to the comparison edition code file
Incremental code coverage rate information.The coverage rate information of the incremental code file is for recording the overall code coverage rate
The redirected link of information, incremental code reference table and the incremental code file.It is described to generate the incremental code text
The coverage rate information of part specifically: generate a form document;The overall code is inserted into form document generated to cover
The redirected link of lid rate information, incremental code reference table and the incremental code file;Store the form document with
Generate the coverage rate information of the incremental code file.Storing covering for the incremental code file in a manner of form document
Lid rate information, and the incremental code file is stored in the coverage rate of the incremental code file in a manner of redirected link
, it can be achieved that the coverage rate information of incremental code file is quickly checked, such as overall code coverage rate in the corresponding form document of information
Information, the incremental code are referring to table and the incremental code file.
Referring to Fig. 2, Fig. 2 is the sub-process signal provided by the embodiments of the present application for calculating incremental code coverage rate method
Figure.As shown, in some embodiments, such as in the present embodiment, after the step S106, the method also includes steps
S107~S110.
S107, obtain the incremental code referring to all file names in table, and to each filename
The sum of the associated change code line is claimed to be counted to generate the first reference data.
In embodiments of the present invention, the incremental code referring to include in table file name and change code line line number,
Wherein, each change code line is all associated with a file name.Pass through change code associated for each file name
Capable sum is counted, and can get subfile change code line sum associated with file name, according to multiple subfiles
Code line sum is changed, the first reference data is generated.
S108, according to the row of the coverage rate information pair change code line associated with each file name
Incremental code row representated by number compares, and to generate the second reference data, second reference data is for described in determination
The code line sum of covering is tested in incremental code.
In embodiments of the present invention, the coverage rate information of the incremental code file is for recording the overall code covering
The redirected link of rate information, incremental code reference table and the incremental code file.According to the coverage rate information pair
Incremental code row representated by the line number of the change code line associated with each file name compares, with
Covering is tested in incremental code representated by the line number of the associated change code line of each file name out
Code line, and then the quantity for the code line that covering is tested in the incremental code is counted, to generate the increment generation
The code line sum of covering is tested in code;It is the second reference number that the code line sum of covering is tested in the incremental code
According to second reference data is used to determine the code line sum for being tested covering in the incremental code.
S109, first reference data and second reference data are calculated, generates third reference data, institute
Third reference data is stated for determining the coverage rate of the subfile to be measured representated by each file name.
In the present embodiment, first reference data changes code for recording subfile associated with file name
Row sum;Second reference data is used to record the code line sum that covering is tested in the incremental code.It is described to
One reference data and the second reference data are calculated, and third reference data is generated specifically: according to described with file name phase
It is tested the code line sum of covering in associated subfile change code line sum and the incremental code, generates each
The coverage rate of the subfile to be measured representated by the file name, institute representated by each file name generated
The coverage rate for stating subfile to be measured is third reference data.
S110, the first report is generated, first report includes the incremental code referring to all files in table
Title, first reference data, second reference data and the third reference data.
In the present embodiment, the first report is generated, includes the incremental code referring to table in first report
In all file names, first reference data, second reference data and the third reference data, with
Coverage rate information of the edition code file to be measured relative to the incremental code for comparing edition code file is understood convenient for tester.
Wherein, it is described first report can be Excel form document, tester can by downloading and checking the Excel form document,
To solve coverage rate information of the edition code file to be measured relative to the incremental code for comparing edition code file.Meanwhile described
One report can also be html file, tester can chained address corresponding to html file, access the html file with
Solve coverage rate information of the edition code file to be measured relative to the incremental code for comparing edition code file.
Referring to Fig. 3, the sub-process that Fig. 3 is the calculating incremental code coverage rate method that the another embodiment of the application provides is shown
It is intended to.As shown, in some embodiments, such as in the present embodiment, after the step S106, the method also includes steps
Rapid S111 and step S112.
S111, the incremental code is obtained referring to all file names in table, and joined according to the incremental code
According to table, the incremental code file and the coverage rate information, to the change associated with each file name
The incremental code that the line number of code line represents is analyzed, with obtain in the incremental code code line of not tested covering and
The change code line line number associated with the code line.
In embodiments of the present invention, by obtaining all file names in the incremental code reference table, according to
The incremental code referring to table, the incremental code file and the coverage rate information, and to each file name
The incremental code analysis that the line number of the associated change code line represents obtains not tested covering in the incremental code
Code line and the change code line line number associated with the code line, can intuitively recognize right convenient for tester
During edition code file to be measured is tested, not the case where the tested code line covered.
S112, the second report is generated, second report includes the incremental code referring to all files in table
Title, the code line of not tested covering and the change code line line number associated with the code line.
It in embodiments of the present invention, by generating the second report, and include the increment generation in second report
Code is referring to the code line of all file names, tested covering in table and associated with the code line
The line number of the change code line, can greatly facilitate tester by reading the second report to assess test effect.Wherein, institute
State the second report can for Excel form document, tester can by downloading and checking the Excel form document, with solution to
Survey coverage rate information of the edition code file relative to the incremental code for comparing edition code file.Meanwhile second report
Can also be html file, tester can chained address corresponding to html file, it is to be measured to solve to access the html file
Coverage rate information of the edition code file relative to the incremental code for comparing edition code file.
Referring to Fig. 4, the sub-process that Fig. 4 is the calculating incremental code coverage rate method that another embodiment of the application provides is shown
It is intended to.As shown, in some embodiments, such as in the present embodiment, after the step S110, the method also includes steps
Rapid S113~S117.
S113, judge the third reference data with the presence or absence of the value smaller than preset threshold.
In embodiments of the present invention, preset threshold has can be preset in tester, for assessing covering for incremental code
Whether lid rate reaches standard.Wherein, the third reference data is to be used to determine institute representated by each file name
The data for stating the coverage rate of subfile to be measured can be convenient for tester by the way that third reference data to be compared with preset threshold
Member understands test effect.
If there is the value smaller than preset threshold in S114, the third reference data, to comparing in the third reference data
The small value of the preset threshold is added up to and generates below standard sum, and first report is stored in the first default storage
Area.
In embodiments of the present invention, if there is the value smaller than preset threshold in third reference data, it is considered as to version to be measured
This code file is not up to standard relative to the coverage rate test for the incremental code for comparing edition code file, by obtaining third reference
The below standard sum of the value smaller than the preset threshold in data can understand the more of edition code file to be measured convenient for tester
In a subfile to be measured, how many subfile to be measured fails up to standard in the coverage rate test of incremental code.In the present embodiment
In, it is provided with the first default memory block, for storage below standard test report.
S115, generate the first user interface, and show in first user interface below standard sum, it is described to
Survey file name, the file name for comparing edition code file of edition code file.
In the present embodiment, by by the file name of the below standard sum, the edition code file to be measured, described
The file name for comparing edition code file is shown in the first user interface, can intuitively recognize that test does not reach convenient for tester
Target concrete condition facilitates tester and is further analyzed to test job.
If the value smaller than the preset threshold is not present in S116, the third reference data, first report is protected
It is stored in the second default memory block.
In embodiments of the present invention, if the value smaller than preset threshold is not present in third reference data, it is considered as to be measured
Edition code file is up to standard relative to the coverage rate test for the incremental code for comparing edition code file.In the present embodiment, if
It is equipped with the second default memory block, for storage test report up to standard.
S117, second user interface is generated, and shows coverage rate test information up to standard on the second user interface.
In the present embodiment, by generating second user interface, and show that coverage rate test reaches in the user interface
Information is marked, the coverage rate test successful instance of incremental code can be recognized convenient for tester.
Referring to Fig. 5, for the schematic block diagram provided by the embodiments of the present application for calculating incremental code coverage rate device.Such as figure
It is shown, the application propose calculating incremental code coverage rate device 200, comprising: first acquisition unit 201, comparing unit 202,
Incremental code generates single referring to table generation unit 203, second acquisition unit 204, third acquiring unit 205 and coverage rate information
Member 206.
First acquisition unit 201, for obtaining edition code file to be measured and comparing edition code file, wherein described
Edition code file to be measured includes multiple subfiles to be measured, and the comparison edition code file includes multiple comparison subfiles, often
One subfile to be measured corresponds to the comparison subfile of existence anduniquess.
Comparing unit 202, for according to pre-set code alignment algorithm to each subfile to be measured and with it is described to be measured
The corresponding comparison subfile of subfile carries out code comparison, to obtain comparison result.
Incremental code is referring to table generation unit 203, if being the subfile to be measured relative to the ratio for comparison result
To subfile, there are coding changes, generate incremental code referring to table, the incremental code includes the subfile to be measured referring to table
File name and the subfile to be measured relative to it is described compare subfile change code line line number.
Second acquisition unit 204, for, referring to table, obtaining the edition code file phase to be measured according to the incremental code
For the incremental code file for comparing edition code file, wherein the incremental code file includes the Ziwen to be measured
Incremental code under the file name of part and the subfile to be measured.
Third acquiring unit 205, for testing the edition code file to be measured, to obtain the version to be measured
The overall code coverage rate information of code file.
Coverage rate information generating unit 206, for according to the overall code coverage rate information, the incremental code reference
Table and the incremental code file, generate the coverage rate information of the incremental code file.
Fig. 6 is referred to, Fig. 6 is the schematic frame for the calculating incremental code coverage rate device that the another embodiment of the application provides
Figure.As shown in fig. 6, in some embodiments, such as in the present embodiment, the calculating incremental code coverage rate device 200 includes:
One acquiring unit 201, comparing unit 202, incremental code are obtained referring to table generation unit 203, second acquisition unit 204, third
Unit 205, coverage rate information generating unit 206, the first reference data generation unit 207, the second reference data generation unit
208, third reference data generation unit 209 and the first report generation unit 210.Wherein, first acquisition unit 201, comparison
Unit 202, incremental code are referring to table generation unit 203, second acquisition unit 204, third acquiring unit 205 and coverage rate letter
Breath generation unit 206 has been described in the above-described embodiments, and details are not described herein again.
First reference data generation unit 207, for obtaining the incremental code referring to all filenames in table
Claim, and the sum of the change code line line number associated with each file name is counted to generate the first ginseng
Examine data.
Second reference data generation unit 208, for according to the coverage rate information pair and each file name phase
Incremental code row representated by the line number of the associated change code line compares, described to generate the second reference data
Second reference data is used to determine the code line sum that covering is tested in the incremental code.
Third reference data generation unit 209, for being carried out to first reference data and second reference data
Calculate, generate third reference data, the third reference data for determine representated by each file name it is described to
Survey the coverage rate of subfile.
First report generation unit 210, for generating the first report, first report includes the incremental code reference
All file names, first reference data, second reference data and the third reference data in table.
Fig. 7 is referred to, Fig. 7 is the schematic frame for the calculating incremental code coverage rate device that the another embodiment of the application provides
Figure.As shown in fig. 7, in some embodiments, such as in the present embodiment, the calculating incremental code coverage rate device 200 includes:
One acquiring unit 201, comparing unit 202, incremental code are obtained referring to table generation unit 203, second acquisition unit 204, third
Unit 205, coverage rate information generating unit 206, analytical unit 211 and the second report generation unit 212.Wherein, it first obtains
Take unit 201, comparing unit 202, incremental code referring to table generation unit 203, second acquisition unit 204, third acquiring unit
205 and coverage rate information generating unit 206 have been described in the above-described embodiments, details are not described herein again.
Analytical unit 211, for obtaining the incremental code referring to all file names in table, and according to described
Incremental code is referring to table, the incremental code file and the coverage rate information, to associated with each file name
The incremental code that represents of line number of the change code line analyzed, to obtain in the incremental code tested covering
Code line and it is associated with the code line it is described change code line line number.
Second report generation unit 212, for generating the second report, second report includes the incremental code reference
All file names in table, tested covering the code line and it is associated with the code line it is described more
Change code line line number.
Fig. 8 is referred to, Fig. 8 is the schematic frame for the calculating incremental code coverage rate device that another embodiment of the application provides
Figure.As shown in figure 8, in some embodiments, such as in the present embodiment, the calculating incremental code coverage rate device 200 includes:
One acquiring unit 201, comparing unit 202, incremental code are obtained referring to table generation unit 203, second acquisition unit 204, third
Unit 205, coverage rate information generating unit 206, the first reference data generation unit 207, the second reference data generation unit
208, third reference data generation unit 209, the first report generation unit 210, judging unit 213, the first storage unit 214,
First display unit 215, the second storage unit 216 and the second display unit 217.Wherein, judging unit 213, first stores
Other than unit 214, the first display unit 215, the second storage unit 216 and the second display unit 217, other units are above-mentioned
It is had been described in embodiment, details are not described herein again.
Judging unit 213, for judging the third reference data with the presence or absence of the value smaller than preset threshold.
First storage unit 214, if for there is the value smaller than preset threshold in the third reference data, to described the
The value smaller than the preset threshold is added up to and generates below standard sum in three reference datas, and first report is saved
In the first default memory block.
First display unit 215, for generating the first user interface, and in first user interface, display is described not
File name, the file name for comparing edition code file of total, described edition code file to be measured up to standard.
Second storage unit 216, if for the value smaller than the preset threshold to be not present in the third reference data, it will
First report is stored in the second default memory block.
Second display unit 217 shows coverage rate for generating second user interface, and on the second user interface
Test information up to standard.
Above-mentioned calculating incremental code coverage rate device can be implemented as a kind of form of computer program, the computer program
It can be run in computer equipment as shown in Figure 9.
Referring to Fig. 9, Fig. 9 is the schematic block diagram of computer equipment provided by the embodiments of the present application.The computer equipment
300 equipment can be terminal.Refering to Fig. 9, the computer equipment 300 include the processor 302 connected by system bus 301,
Memory and network interface 305, wherein memory may include non-volatile memory medium 303 and built-in storage 304.This is non-
Volatile storage medium 303 can storage program area 3031 and computer program 3032.The computer program 3032 includes program
Instruction, the program instruction are performed, and processor 302 may make to execute a kind of method for calculating incremental code coverage rate.At this
Device 302 is managed for providing calculating and control ability, supports the operation of entire computer equipment 300.The built-in storage 304 is non-easy
The operation of computer program 3032 in the property lost storage medium 303 provides environment, which is held by processor 302
When row, processor 302 may make to execute a kind of method for calculating incremental code coverage rate.The network interface 305 is for carrying out net
Network communication, such as sends the task dispatching of distribution.It will be understood by those skilled in the art that structure shown in Fig. 9, only with this Shen
Please the relevant part-structure of scheme block diagram, do not constitute the computer equipment 300 being applied thereon to application scheme
Limit, specific computer equipment 300 may include than more or fewer components as shown in the figure, or the certain components of combination,
Or with different component layouts.
Wherein, the processor 302 is for running computer program 3032 stored in memory, to realize following function
Can: obtain edition code file to be measured and compare edition code file, wherein the edition code file to be measured include it is multiple to
Subfile is surveyed, the comparison edition code file includes multiple comparison subfiles, and each subfile to be measured is corresponding to be existed only
One comparison subfile;According to pre-set code alignment algorithm to each subfile to be measured and corresponding with the subfile to be measured
The comparison subfile carry out code comparison, to obtain comparison result;If comparison result be the subfile to be measured relative to
There are coding changes for the comparison subfile, generate incremental code referring to table, the incremental code includes described to be measured referring to table
The line number of the file name of subfile and the subfile to be measured relative to the change code line for comparing subfile;According to institute
Incremental code is stated referring to table, obtains the edition code file to be measured relative to the incremental code for comparing edition code file
File, wherein the incremental code file includes the increasing under the file name and the subfile to be measured of the subfile to be measured
Measure code;The edition code file to be measured is tested, is covered with obtaining the overall code of the edition code file to be measured
Lid rate information;It is raw according to the overall code coverage rate information, the incremental code referring to table and the incremental code file
At the coverage rate information of the incremental code file.
In one embodiment, processor 302 is described according to the overall code coverage rate information, the increment generation in execution
Code is referring to table and the incremental code file, after the coverage rate information for generating the incremental code file, also realizes as follows
Function: the incremental code is obtained referring to all file names in table, and to associated with each file name
The sum of the change code line counted to generate the first reference data;According to the coverage rate information pair and each institute
It states incremental code row representated by the line number of the associated change code line of file name to compare, to generate the second ginseng
Data are examined, second reference data is used to determine the code line sum that covering is tested in the incremental code;To described
One reference data and second reference data are calculated, and generate third reference data, the third reference data is for true
The coverage rate of the subfile to be measured representated by fixed each file name;Generate the first report, the first report packet
Include the incremental code referring in table all file names, first reference data, second reference data with
And the third reference data.
In one embodiment, processor 302 is described according to the overall code coverage rate information, the increment generation in execution
Code is referring to table and the incremental code file, after the coverage rate information for generating the incremental code file, also realizes as follows
Function: obtaining the incremental code referring to all file names in table, and according to the incremental code referring to table, described
Incremental code file and the coverage rate information, to the row of the change code line associated with each file name
Number incremental code represented is analyzed, with obtain in the incremental code not tested covering code line and with the code
The line number of the associated change code line of row;The second report is generated, second report includes the incremental code reference
All file names in table, tested covering the code line and it is associated with the code line it is described more
Change the line number of code line.
In one embodiment, processor 302 also implements function such as: judgement after executing first report of generation
The third reference data whether there is the value smaller than preset threshold;If existing in the third reference data smaller than preset threshold
Value, value smaller than the preset threshold in the third reference data is added up to and generates below standard sum, and by institute
It states the first report and is stored in the first default memory block;The first user interface is generated, and shows institute in first user interface
State below standard sum, the file name of the edition code file to be measured and the filename for comparing edition code file
Claim.
In one embodiment, processor 302 execute the third reference data is compared with preset threshold after,
It also implements function such as: if there is no the values smaller than the preset threshold in the third reference data, described first being reported
It is stored in the second default memory block;Second user interface is generated, and shows that coverage rate test reaches on the second user interface
Mark information.
It should be appreciated that in the embodiment of the present application, processor 302 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices
Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
The processor is also possible to any conventional processor etc..
A kind of storage medium is provided in another embodiment of the application.The storage medium can be computer-readable storage
Medium.The storage medium is stored with computer program, and wherein computer program includes program instruction.The program instruction is by processor
Make when execution processor execute following procedure: obtain edition code file to be measured and compare edition code file, wherein it is described to
Surveying edition code file includes multiple subfiles to be measured, and the comparison edition code file includes multiple comparison subfiles, each
The subfile to be measured corresponds to the comparison subfile of existence anduniquess;According to pre-set code alignment algorithm to each Ziwen to be measured
Part and it is corresponding with the subfile to be measured it is described compare subfile and carry out code compare, to obtain comparison result;If comparing knot
Relative to the comparison subfile, there are coding changes for the subfile to be measured for fruit, generate incremental code referring to table, the increasing
The file name and the subfile to be measured that amount code includes the subfile to be measured referring to table are relative to the comparison subfile
Change code line line number;According to the incremental code referring to table, the edition code file to be measured is obtained relative to described
Compare the incremental code file of edition code file, wherein the incremental code file includes the file of the subfile to be measured
Incremental code under title and the subfile to be measured;The edition code file to be measured is tested, with obtain it is described to
Survey the overall code coverage rate information of edition code file;Joined according to the overall code coverage rate information, the incremental code
According to table and the incremental code file, the coverage rate information of the incremental code file is generated.
In one embodiment, which is executed by processor described according to the overall code coverage rate information, institute
State incremental code referring to table and the incremental code file, after the coverage rate information for generating the incremental code file, also
Execute following procedure: obtaining the incremental code referring to all file names in table, and to each filename
The sum of the associated change code line is claimed to be counted to generate the first reference data;According to the coverage rate information pair
Incremental code row representated by the line number of the change code line associated with each file name compares, with life
At the second reference data, second reference data is used to determine the code line sum that covering is tested in the incremental code;
First reference data and second reference data are calculated, third reference data, the third reference number are generated
According to for determining the coverage rate of the subfile to be measured representated by each file name;Generate the first report, described the
One report includes the incremental code referring to all file names, first reference data, second ginseng in table
Examine data and the third reference data.
In one embodiment, which is executed by processor described according to the overall code coverage rate information, institute
State incremental code referring to table and the incremental code file, after the coverage rate information for generating the incremental code file, also
It executes following procedure: obtaining the incremental code referring to all file names in table, and join according to the incremental code
According to table, the incremental code file and the coverage rate information, to the change associated with each file name
The incremental code that the line number of code line represents is analyzed, with obtain in the incremental code code line of not tested covering and
The line number of the change code line associated with the code line;The second report is generated, second report includes the increasing
Code is measured referring to the code line of all file names, tested covering in table and related to the code line
The line number of the change code line of connection.
In one embodiment, which is executed by processor after first report of generation, also executes following journey
Sequence: judge the third reference data with the presence or absence of the value smaller than preset threshold;If existing in the third reference data than pre-
If the small value of threshold value, value smaller than the preset threshold in the third reference data is added up to and is generated below standard total
Number, and first report is stored in the first default memory block;The first user interface is generated, and in first user interface
The upper display below standard sum, the file name of the edition code file to be measured and the edition code file that compares
File name.
In one embodiment, which, which is executed by processor, compares the third reference data with preset threshold
To later, also execution following procedure: if the value smaller than the preset threshold is not present in the third reference data, by described the
One report is stored in the second default memory block;Second user interface is generated, and shows coverage rate on the second user interface
Test information up to standard.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), magnetic disk or
The various media that can store program code such as person's CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond scope of the present application.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.This Shen
Please the unit in embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the application
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.Above-mentioned integrated unit both can take the form of hardware realization,
It can also realize in the form of software functional units.If the integrated unit is realized in the form of SFU software functional unit and makees
It is independent product when selling or using, can store in one storage medium.Based on this understanding, the technology of the application
Substantially all or part of the part that contributes to existing technology or the technical solution can be with software in other words for scheme
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, terminal or the network equipment etc.) executes described in each embodiment of the application
The all or part of the steps of method.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.
Claims (10)
1. a kind of method for calculating incremental code coverage rate characterized by comprising
It obtains edition code file to be measured and compares edition code file, wherein the edition code file to be measured includes multiple
Subfile to be measured, the comparison edition code file include multiple comparison subfiles, and each subfile to be measured is corresponding to be existed
It is unique to compare subfile;
It to each subfile to be measured and corresponding with the subfile to be measured described is compared according to pre-set code alignment algorithm
Subfile carries out code comparison, to obtain comparison result;
If comparison result is the subfile to be measured, relative to the comparison subfile, there are coding changes, generate incremental code ginseng
According to table, the file name and the subfile to be measured that the incremental code includes the subfile to be measured referring to table are relative to described
Compare the line number of the change code line of subfile;
According to the incremental code referring to table, the edition code file to be measured is obtained relative to the comparison edition code file
Incremental code file, wherein the incremental code file include the subfile to be measured file name and the son to be measured
Incremental code under file;
The edition code file to be measured is tested, to obtain the overall code coverage rate of the edition code file to be measured
Information;
According to the overall code coverage rate information, the incremental code referring to table and the incremental code file, institute is generated
State the coverage rate information of incremental code file.
2. the method according to claim 1 for calculating incremental code coverage rate, which is characterized in that described according to the entirety
Code coverage information, the incremental code generate the incremental code file referring to table and the incremental code file
After the step of coverage rate information, the method also includes:
The incremental code is obtained referring to all file names in table, and to associated with each file name
The sum of the change code line is counted to generate the first reference data;
According to representated by the line number of the coverage rate information pair change code line associated with each file name
Incremental code row compare, to generate the second reference data, second reference data is for determining the incremental code
In be tested covering code line sum;
First reference data and second reference data are calculated, third reference data, the third ginseng are generated
Data are examined for determining the coverage rate of the subfile to be measured representated by each file name;
Generate the first report, first report includes the incremental code referring to all file names, described in table
First reference data, second reference data and the third reference data.
3. the method according to claim 1 for calculating incremental code coverage rate, which is characterized in that described according to the entirety
Code coverage information, the incremental code generate the incremental code file referring to table and the incremental code file
After the step of coverage rate information, the method also includes:
The incremental code is obtained referring to all file names in table, and according to the incremental code referring to table, described
Incremental code file and the coverage rate information, to the row of the change code line associated with each file name
Number incremental code represented is analyzed, with obtain in the incremental code not tested covering code line and with the code
The line number of the associated change code line of row;
Generate the second report, second report include the incremental code referring in table all file names, not by
The line number of the code line of Test coverage and the change code line associated with the code line.
4. the method according to claim 2 for calculating incremental code coverage rate, which is characterized in that described to generate the first report
The step of after, the method also includes:
Judge the third reference data with the presence or absence of the value smaller than preset threshold;
If in the third reference data exist the value smaller than preset threshold, in the third reference data than the default threshold
It is worth small value to be added up to and generate below standard sum, and first report is stored in the first default memory block;
The first user interface is generated, and shows the below standard sum, the version generation to be measured in first user interface
The file name of code file and the file name for comparing edition code file.
5. the method according to claim 4 for calculating incremental code coverage rate, which is characterized in that described to join the third
After examining the step of data are compared with preset threshold, the method also includes:
If the value smaller than the preset threshold is not present in the third reference data, it is pre- that first report is stored in second
If memory block;
Second user interface is generated, and shows coverage rate test information up to standard on the second user interface.
6. a kind of calculating incremental code coverage rate device characterized by comprising
First acquisition unit, for obtaining edition code file to be measured and comparing edition code file, wherein the version to be measured
Code file includes multiple subfiles to be measured, and the comparison edition code file includes multiple comparison subfiles, it is each it is described to
Survey the comparison subfile that subfile corresponds to existence anduniquess;
Comparing unit, for according to pre-set code alignment algorithm to each subfile to be measured and with the subfile pair to be measured
The comparison subfile answered carries out code comparison, to obtain comparison result;
Incremental code is referring to table generation unit, if being the subfile to be measured relative to the comparison subfile for comparison result
There are coding change, incremental code is generated referring to table, the incremental code includes the filename of the subfile to be measured referring to table
Claim and the subfile to be measured is relative to the line number for changing code line for comparing subfile;
Second acquisition unit, for, referring to table, obtaining the edition code file to be measured relative to institute according to the incremental code
State the incremental code file for comparing edition code file, wherein the incremental code file includes the text of the subfile to be measured
Incremental code under part title and the subfile to be measured;
Third acquiring unit, for testing the edition code file to be measured, to obtain the edition code text to be measured
The overall code coverage rate information of part;
Coverage rate information generating unit, for according to the overall code coverage rate information, the incremental code referring to table and
The incremental code file generates the coverage rate information of the incremental code file.
7. calculating incremental code coverage rate device according to claim 6, which is characterized in that described device further include:
First reference data generation unit, for obtaining all file names in the incremental code reference table, and it is right
The sum of the change code line associated with each file name is counted to generate the first reference data;
Second reference data generation unit, for according to the coverage rate information pair institute associated with each file name
It states incremental code row representated by the line number of change code line to compare, to generate the second reference data, second reference
Data are used to determine the code line sum that covering is tested in the incremental code;
Third reference data generation unit, it is raw for calculating first reference data and second reference data
At third reference data, the third reference data is for determining the subfile to be measured representated by each file name
Coverage rate;
First report generation unit, for generating the first report, first report includes the incremental code referring in table
All file names, first reference data, second reference data and the third reference data.
8. calculating incremental code coverage rate device according to claim 6, which is characterized in that described device further include:
Analytical unit, for obtaining the incremental code referring to all file names in table, and according to the increment generation
Code is referring to table, the incremental code file and the coverage rate information, to associated with each file name described
The incremental code that the line number of change code line represents is analyzed, to obtain the code of not tested covering in the incremental code
The line number of the change code line capable and associated with the code line;
Second report generation unit, for generating the second report, second report includes the incremental code referring in table
All file names, the not tested code line and the change code associated with the code line covered
Capable line number.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
Any one of calculating incremental code coverage rate method.
10. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter
Calculation machine program makes the processor execute calculating increment generation according to any one of claims 1 to 5 when being executed by a processor
Code coverage rate method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910672301.1A CN110532174B (en) | 2019-07-24 | 2019-07-24 | Method, device, computer equipment and storage medium for calculating increment code coverage rate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910672301.1A CN110532174B (en) | 2019-07-24 | 2019-07-24 | Method, device, computer equipment and storage medium for calculating increment code coverage rate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110532174A true CN110532174A (en) | 2019-12-03 |
CN110532174B CN110532174B (en) | 2024-05-31 |
Family
ID=68661301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910672301.1A Active CN110532174B (en) | 2019-07-24 | 2019-07-24 | Method, device, computer equipment and storage medium for calculating increment code coverage rate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110532174B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078563A (en) * | 2019-12-18 | 2020-04-28 | 上海品顺信息科技有限公司 | Coverage rate data processing method, terminal device and computer readable storage medium |
CN112363945A (en) * | 2020-11-23 | 2021-02-12 | 北京三快在线科技有限公司 | Version testing method and device |
CN112631926A (en) * | 2020-12-29 | 2021-04-09 | 平安银行股份有限公司 | Code test coverage rate display method and device, computer equipment and storage medium |
CN112783800A (en) * | 2021-03-19 | 2021-05-11 | 北京奇艺世纪科技有限公司 | Test case screening method and device |
CN114416545A (en) * | 2022-01-06 | 2022-04-29 | 马上消费金融股份有限公司 | Method and device for determining test code coverage rate and electronic equipment |
CN117349150A (en) * | 2023-09-22 | 2024-01-05 | 乾升利信息技术(上海)有限公司 | Coverage rate data processing method and device, electronic equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722436A (en) * | 2012-05-29 | 2012-10-10 | 百度在线网络技术(北京)有限公司 | Statistical method and device for incremental coverage information |
CN106201863A (en) * | 2016-06-22 | 2016-12-07 | 广州唯品会信息科技有限公司 | A kind of method and apparatus obtaining code coverage |
CN106648716A (en) * | 2015-10-30 | 2017-05-10 | 北京数码视讯科技股份有限公司 | Increment updating method, server and intelligent card |
CN107957956A (en) * | 2017-12-26 | 2018-04-24 | 广州品唯软件有限公司 | Test method, device and the readable storage medium storing program for executing of software differences coverage rate |
CN108170610A (en) * | 2018-01-17 | 2018-06-15 | 北京网信云服信息科技有限公司 | The method and apparatus for determining test coverage |
CN108197036A (en) * | 2018-02-06 | 2018-06-22 | 百度在线网络技术(北京)有限公司 | For determining the method and apparatus of the coverage rate information of incremental code |
CN109388566A (en) * | 2018-09-27 | 2019-02-26 | 北京城市网邻信息技术有限公司 | A kind of code coverage rate analysis method, apparatus, equipment and storage medium |
CN109426604A (en) * | 2017-08-22 | 2019-03-05 | 阿里巴巴集团控股有限公司 | The monitoring method and equipment of code development |
CN109491923A (en) * | 2018-12-14 | 2019-03-19 | 东软集团股份有限公司 | Determination method, apparatus, medium and the electronic equipment of newly-increased abnormality code |
CN109766261A (en) * | 2018-12-14 | 2019-05-17 | 中国平安财产保险股份有限公司 | Coverage test method, device, computer equipment and storage medium |
CN109857631A (en) * | 2018-11-02 | 2019-06-07 | 平安科技(深圳)有限公司 | Code coverage statistical method, device, equipment and storage medium based on artificial intelligence |
-
2019
- 2019-07-24 CN CN201910672301.1A patent/CN110532174B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722436A (en) * | 2012-05-29 | 2012-10-10 | 百度在线网络技术(北京)有限公司 | Statistical method and device for incremental coverage information |
CN106648716A (en) * | 2015-10-30 | 2017-05-10 | 北京数码视讯科技股份有限公司 | Increment updating method, server and intelligent card |
CN106201863A (en) * | 2016-06-22 | 2016-12-07 | 广州唯品会信息科技有限公司 | A kind of method and apparatus obtaining code coverage |
CN109426604A (en) * | 2017-08-22 | 2019-03-05 | 阿里巴巴集团控股有限公司 | The monitoring method and equipment of code development |
CN107957956A (en) * | 2017-12-26 | 2018-04-24 | 广州品唯软件有限公司 | Test method, device and the readable storage medium storing program for executing of software differences coverage rate |
CN108170610A (en) * | 2018-01-17 | 2018-06-15 | 北京网信云服信息科技有限公司 | The method and apparatus for determining test coverage |
CN108197036A (en) * | 2018-02-06 | 2018-06-22 | 百度在线网络技术(北京)有限公司 | For determining the method and apparatus of the coverage rate information of incremental code |
CN109388566A (en) * | 2018-09-27 | 2019-02-26 | 北京城市网邻信息技术有限公司 | A kind of code coverage rate analysis method, apparatus, equipment and storage medium |
CN109857631A (en) * | 2018-11-02 | 2019-06-07 | 平安科技(深圳)有限公司 | Code coverage statistical method, device, equipment and storage medium based on artificial intelligence |
CN109491923A (en) * | 2018-12-14 | 2019-03-19 | 东软集团股份有限公司 | Determination method, apparatus, medium and the electronic equipment of newly-increased abnormality code |
CN109766261A (en) * | 2018-12-14 | 2019-05-17 | 中国平安财产保险股份有限公司 | Coverage test method, device, computer equipment and storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078563A (en) * | 2019-12-18 | 2020-04-28 | 上海品顺信息科技有限公司 | Coverage rate data processing method, terminal device and computer readable storage medium |
CN112363945A (en) * | 2020-11-23 | 2021-02-12 | 北京三快在线科技有限公司 | Version testing method and device |
CN112631926A (en) * | 2020-12-29 | 2021-04-09 | 平安银行股份有限公司 | Code test coverage rate display method and device, computer equipment and storage medium |
CN112783800A (en) * | 2021-03-19 | 2021-05-11 | 北京奇艺世纪科技有限公司 | Test case screening method and device |
CN112783800B (en) * | 2021-03-19 | 2023-09-05 | 北京奇艺世纪科技有限公司 | Test case screening method and device |
CN114416545A (en) * | 2022-01-06 | 2022-04-29 | 马上消费金融股份有限公司 | Method and device for determining test code coverage rate and electronic equipment |
CN117349150A (en) * | 2023-09-22 | 2024-01-05 | 乾升利信息技术(上海)有限公司 | Coverage rate data processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110532174B (en) | 2024-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110532174A (en) | Calculate method, apparatus, computer equipment and the storage medium of incremental code coverage rate | |
CN104809071B (en) | A kind of code test method and device | |
CN104185840B (en) | It is used for being prioritized the mthods, systems and devices of multiple tests in lasting deployment streamline | |
US8046385B2 (en) | Data quality tracking | |
CN101553802B (en) | An automated method and system for collecting and reporting API performance profiles | |
Filó et al. | A catalogue of thresholds for object-oriented software metrics | |
CN110413506A (en) | Test case recommended method, device, equipment and storage medium | |
CN105068921B (en) | Android based on App comparative analyses applies the evaluation method of shop confidence level | |
Letouzey et al. | The sqale analysis model: An analysis model compliant with the representation condition for assessing the quality of software source code | |
US20140013308A1 (en) | Application Development Environment with Services Marketplace | |
US20140013306A1 (en) | Computer Load Generator Marketplace | |
CN109271315A (en) | Scripted code detection method, device, computer equipment and storage medium | |
CN107066384A (en) | Software Evolution appraisal procedure based on Halstead complexity metrics | |
CN108563572A (en) | A kind of regression testing method, device and server | |
CN107784230B (en) | The restorative procedure and device of page loophole | |
CN111966587A (en) | Data acquisition method, device and equipment | |
CN114064497A (en) | Application program testing method and device, computer equipment and storage medium | |
Sung et al. | A quality model for open source software selection | |
CN109857657A (en) | Code detection method, device, computer equipment and storage medium | |
CN110362481A (en) | Automatic test approach and terminal device | |
Hegedűs | A probabilistic quality model for c#-an industrial case study | |
US20080127083A1 (en) | Method and system for combining multiple benchmarks | |
CN107870858A (en) | Version contrast test method and system | |
Steinbeck et al. | Javadoc violations and their evolution in open-source software | |
Gronback | Software remodeling: Improving design and implementation quality |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |