CN117033215A - Test data processing method and device for increment codes, electronic equipment and storage medium - Google Patents

Test data processing method and device for increment codes, electronic equipment and storage medium Download PDF

Info

Publication number
CN117033215A
CN117033215A CN202311006047.4A CN202311006047A CN117033215A CN 117033215 A CN117033215 A CN 117033215A CN 202311006047 A CN202311006047 A CN 202311006047A CN 117033215 A CN117033215 A CN 117033215A
Authority
CN
China
Prior art keywords
code
increment
code coverage
target
incremental
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311006047.4A
Other languages
Chinese (zh)
Inventor
汪辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202311006047.4A priority Critical patent/CN117033215A/en
Publication of CN117033215A publication Critical patent/CN117033215A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a test data processing method and device of an increment code, electronic equipment and a storage medium, wherein the test data processing method of the increment code comprises the following steps: identifying a code increment row of the target version based on the development model, wherein the code increment row of the target version is modified by a user person based on the demand task; testing a code increment row of a target version based on a preset test case, and obtaining personal code coverage rate index data of a user; and generating a target chart and displaying the target chart, wherein the target chart is used for displaying the incremental code coverage rate, the automatic incremental code coverage rate and the incremental analysis rate. The application can determine the personal code coverage index data of each user so as to determine the code improvement quality of the developer. Meanwhile, the application can accurately and intuitively show the code improvement quality of each developer.

Description

Test data processing method and device for increment codes, electronic equipment and storage medium
Technical Field
The present application relates to the field of code testing, and in particular, to a method and apparatus for processing test data of incremental codes, an electronic device, and a storage medium.
Background
At present, after updating an application version, in order to obtain an incremental code coverage rate related index of an application, an updated application code is usually tested as a whole, for example, if a developer a changes the application code based on a first requirement and a developer B changes the application code based on a second requirement, the test is performed after the developer a and the developer B complete the change, that is, the updated application code is tested as a whole, so as to obtain the integral incremental code coverage rate related index, however, the incremental code coverage rate related index obtained in this way can only reflect the integral code improvement quality of the application code, and cannot reflect the code improvement quality of each developer. At the same time, this approach is inconvenient for measuring the sufficiency and efficiency of testing of different panelists.
Disclosure of Invention
An object of the embodiment of the application is to provide a test data processing method, a test data processing device, an electronic device and a storage medium for incremental codes, which are used for determining personal code coverage rate index data of each user so as to determine code improvement quality of developers. Meanwhile, the application can accurately and intuitively show the code improvement quality of each developer.
In a first aspect, the present application provides a method for processing test data of an incremental code, the method comprising:
identifying a code delta row of a target version based on a development model when it is detected that a user submitted a code update for the target version, wherein the code delta row of the target version is personally modified by the user based on a demand task;
testing the code increment row of the target version based on a preset test case, and obtaining personal code coverage index data of the user, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate;
and generating a target chart and displaying the target chart, wherein the target chart is used for displaying the increment code coverage, the automatic increment code coverage and the increment analysis rate.
According to the method, when the fact that the user submits the code update for the target version is detected, the code increment row of the target version is identified based on the research and development model, wherein the code increment row of the target version is personally modified by the user based on a demand task, further the code increment row of the target version can be tested based on a preset test case, personal code coverage index data of the user can be obtained, the personal code coverage index data comprise incremental code coverage, automatic incremental code coverage and incremental analysis rate, the personal code coverage index data of each user can be finally determined, and the problem that the overall incremental code coverage related index cannot reflect personal code change quality is solved. Further, by generating a target chart and presenting the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be presented based on the target chart, thereby accurately and intuitively presenting the code improvement quality for each developer.
In alternative embodiments, the development model includes a PAFlow model and a Fork Pull Request model.
This alternative embodiment can identify the code delta line of the target version through the PAFlow model and the Fork Pull Request model.
In an alternative embodiment, the method further comprises:
determining the group to which the user belongs;
counting the personal code coverage index data of all panelists in the group, and obtaining a statistical result, wherein the statistical result comprises a statistical value of the incremental code coverage, a statistical value of the automatic incremental code coverage and a statistical value of the incremental analysis rate;
and sequentially judging whether the statistical value of the increment code coverage is larger than a preset first index threshold value, judging whether the statistical value of the automatic increment code coverage is larger than a preset second index threshold value, judging whether the statistical value of the increment analysis rate is larger than a preset third index threshold value, and generating improvement information if at least one statistical value does not meet the condition.
According to the optional implementation mode, the personal code coverage rate index data of all panelists in the group can be counted through determining the group to which the user belongs, and a statistical result is obtained, wherein the statistical result comprises the statistical value of the incremental code coverage rate, the statistical value of the automatic incremental code coverage rate and the statistical value of the incremental analysis rate, and further, by sequentially judging whether the statistical value of the incremental code coverage rate is larger than a preset first index threshold value, judging whether the statistical value of the automatic incremental code coverage rate is larger than a preset second index threshold value and judging whether the statistical value of the incremental analysis rate is larger than a preset third index threshold value, if at least one statistical value does not meet the conditions, improvement information is generated, and therefore, the code improvement quality can be determined from the group dimension and the improvement information is generated.
In an alternative embodiment, the improvement information includes cause analysis information, improvement plan, improvement cycle, improvement plan completion time.
In an alternative embodiment, the method further comprises:
acquiring the current time of the system;
calculating a difference between the current time of the system and the planned completion time of the improvement plan;
judging whether the difference value between the current time of the system and the planned completion time of the improvement scheme is smaller than a preset time threshold value, and if the difference value between the current time of the system and the planned completion time of the improvement scheme is smaller than the preset time threshold value, generating time early warning information and pushing the time early warning information.
According to the optional implementation mode, the current time of the system is obtained, the difference between the current time of the system and the planned completion time of the improvement scheme can be calculated, whether the difference between the current time of the system and the planned completion time of the improvement scheme is smaller than a preset time threshold is judged, the difference between the current time of the system and the planned completion time of the improvement scheme is smaller than the preset time threshold, time early warning information is generated, the time early warning information is pushed, and finally relevant personnel are timely reminded to timely rearrange codes which do not meet requirements.
In an alternative embodiment, before the generating the time early warning information and pushing the time early warning information, the method further includes:
acquiring state information of the improved scheme;
judging whether the state information of the improved scheme indicates that the improved scheme is executed, and if the improved scheme is not executed, triggering and executing the generation time early warning information and pushing the time early warning information.
According to the alternative embodiment, by acquiring the state information of the improved scheme, whether the state information of the improved scheme characterizes that the improved scheme is executed or not can be judged, if the improved scheme is not executed, the execution of the generation time early-warning information and the pushing of the time early-warning information are triggered, and finally, the generation of the time early-warning information and the pushing of the time early-warning information are still avoided when the improved scheme is executed.
In an alternative embodiment, the target graph includes a bar graph and a trend line graph.
According to the alternative implementation mode, the code coverage rate index data can be intuitively and accurately displayed through the straight bar graph and the trend line graph.
In a second aspect, the present application provides a test data processing apparatus for delta codes, the apparatus comprising:
the code detection module is used for identifying a code increment row of a target version based on a research and development model when detecting that a user submits code update for the target version, wherein the code increment row of the target version is personally modified by the user based on a demand task;
the testing module is used for testing the code increment row of the target version based on a preset test case and obtaining personal code coverage rate index data of the user, wherein the personal code coverage rate index data comprises increment code coverage rate, automatic increment code coverage rate and increment analysis rate;
the generation module is used for generating a target chart and displaying the target chart, wherein the target chart is used for displaying the increment code coverage rate, the automatic increment code coverage rate and the increment analysis rate.
The device of the second aspect of the present application can identify a code increment row of a target version based on a development model when detecting that a user submits code update for the target version, wherein the code increment row of the target version is personally modified by the user based on a demand task, and further can test the code increment row of the target version based on a preset test case, and obtain personal code coverage index data of the user, wherein the personal code coverage index data comprises incremental code coverage, automatic incremental code coverage and incremental analysis rate, and finally, the personal code coverage index data of each user can be determined, so that the problem that the overall incremental code coverage related index cannot reflect the personal code modification quality is avoided. Further, by generating a target chart and presenting the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be presented based on the target chart, thereby accurately and intuitively presenting the code improvement quality for each developer.
In a third aspect, the present application provides an electronic device comprising:
a processor; and
a memory configured to store machine readable instructions that, when executed by the processor, perform the test data processing method of delta code according to any of the preceding embodiments.
According to the electronic equipment of the third aspect of the application, by executing the test data processing method, when the fact that a user submits code updating aiming at a target version is detected, the code increment row of the target version is identified based on a research and development model, wherein the code increment row of the target version is personally modified by the user based on a demand task, further the code increment row of the target version can be tested based on a preset test case, personal code coverage index data of the user can be obtained, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate, and finally the personal code coverage index data of each user can be determined, so that the problem that the integral increment code coverage related index cannot reflect personal code change quality is avoided. Further, by generating a target chart and presenting the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be presented based on the target chart, thereby accurately and intuitively presenting the code improvement quality for each developer.
In a fourth aspect, the present application provides a storage medium storing a computer program that is executed by a processor to perform the test data processing method of an incremental code according to any one of the preceding embodiments.
According to the storage medium of the fourth aspect of the application, by executing the test data processing method, when a user is detected to submit code update for a target version, the code increment row of the target version can be identified based on a research and development model, wherein the code increment row of the target version is personally modified by the user based on a demand task, further the code increment row of the target version can be tested based on a preset test case, and personal code coverage index data of the user can be obtained, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate, and finally the personal code coverage index data of each user can be determined, so that the problem that the integral increment code coverage related index cannot reflect the quality of personal code change is avoided. Further, by generating a target chart and presenting the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be presented based on the target chart, thereby accurately and intuitively presenting the code improvement quality for each developer.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a test data processing method of incremental codes according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a test data processing device for incremental codes according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a test data processing method of incremental codes according to an embodiment of the present application, and as shown in fig. 1, the method of the embodiment of the present application includes the following steps:
101. identifying a code increment row of the target version based on the development model when it is detected that the user submits a code update for the target version, wherein the code increment row of the target version is personally modified by the user based on the demand task;
102. testing a code increment row of a target version based on a preset test case, and obtaining personal code coverage rate index data of a user, wherein the personal code coverage rate index data comprises increment code coverage rate, automatic increment code coverage rate and increment analysis rate;
103. and generating a target chart and displaying the target chart, wherein the target chart is used for displaying the incremental code coverage rate, the automatic incremental code coverage rate and the incremental analysis rate.
According to the method provided by the embodiment of the application, when the fact that the user submits the code update for the target version is detected, the code increment row of the target version is identified based on the research and development model, wherein the code increment row of the target version is personally modified by the user based on the demand task, the code increment row of the target version can be further tested based on the preset test case, and personal code coverage index data of the user can be obtained, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate, and finally the personal code coverage index data of each user can be determined, so that the problem that the integral increment code coverage related index cannot reflect the personal code change quality is avoided. In addition, by generating the target chart and displaying the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be displayed based on the target chart, thereby accurately and intuitively displaying the code improvement quality of each developer.
In the embodiment of the present application, assuming that the version a of the application is updated to the version B and the update includes the code improvement made based on the first requirement and the code improvement made based on the second requirement as an embodiment, the embodiment of the present application can generate the code coverage index data of the code improvement made for the first requirement and the code coverage index data of the code improvement made for the second requirement, so that the code improvement quality of the developer corresponding to the first requirement and the code improvement quality of the developer corresponding to the second requirement can be distinguished.
In the embodiment of the present application, the user is a developer who improves the code, and further, the developer may improve the code of the target version, for example, add the code needed to realize the a in the code of the target version. When a developer completes code improvement, the target version carrying the improvement code may be uploaded into the data store by the code management tool, thereby identifying the code delta row of the target version using the development model deployed in the data store.
In the embodiment of the present application, for step 102, the preset test case is designed in advance, for example, a tester designs test cases of various execution environments based on methods such as an equivalence class division method, a boundary value analysis method, an error guessing method, a causal graph method, and a state transition method, and finally, the test cases are used to test the execution conditions of the improved code under various environments.
In the embodiment of the present application, for step 102, incremental code coverage refers to code test coverage after each modification to a software product in a software test. Further, the incremental code coverage includes two sub-indicators: statement coverage and branch coverage, wherein statement coverage characterizes whether each statement in the measurement code has been executed, and branch coverage characterizes whether each branch in the measurement code has been executed.
In the embodiment of the present application, for step 102, the automated incremental code coverage is derived based on an automated test tool, which differs from the incremental code coverage in that the incremental code coverage is derived based on a manual test mode, and the automated incremental code coverage is derived by an automated test tool. Further, the automated test tools may include JaCoCo, cobertura, emma, where specific test steps of the automated test tools such as JaCoCo, cobertura, emma are not limited in this regard as to the prior art.
In an embodiment of the present application, for step 102, the incremental analysis rate refers to the analysis of the test coverage of each modification of the software product during the test to determine which portions of the code are affected and whether a more detailed test is required. The influence caused by the code modification can be effectively identified through the increment analysis rate, and the part to be tested is determined.
In an embodiment of the present application, as an alternative implementation manner, the development model includes a PAFlow model and a Fork Pull Request model. This alternative embodiment can identify the code delta line of the target version through the PAFlow model and the Fork Pull Request model.
For the alternative embodiment described above, the PAFlow model is to create Feature branches and master branches against identifying delta code lines based on demand SST, while the Fork Pull Request model is to identify delta code lines based on comments that the developer must contain SST numbers at the commit specification. For a description of the commit specification, SST number, feature branch, and master branch, refer to the prior art, and the description is omitted here.
In an embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following steps:
determining the group to which the user belongs;
counting the personal code coverage index data of all panelists in the group, and obtaining a statistical result, wherein the statistical result comprises a statistical value of incremental code coverage, a statistical value of automatic incremental code coverage and a statistical value of incremental analysis rate;
and sequentially judging whether the statistical value of the increment code coverage is larger than a preset first index threshold value, judging whether the statistical value of the automatic increment code coverage is larger than a preset second index threshold value, judging whether the statistical value of the increment analysis rate is larger than a preset third index threshold value, and generating improvement information if at least one statistical value does not meet the condition.
According to the optional implementation mode, the personal code coverage rate index data of all members in the group can be counted through determining the group to which the user belongs, and a statistical result is obtained, wherein the statistical result comprises a statistical value of incremental code coverage rate, a statistical value of automatic incremental code coverage rate and a statistical value of incremental analysis rate, and further, by judging whether the statistical value of the incremental code coverage rate is larger than a preset first index threshold value, judging whether the statistical value of the automatic incremental code coverage rate is larger than a preset second index threshold value and judging whether the statistical value of the incremental analysis rate is larger than a preset third index threshold value in sequence, if at least one statistical value does not meet the condition, improvement information is generated, so that code improvement quality can be determined from the group dimension and improvement information is generated.
For the above optional embodiments, the user function on which the group of the user belongs may be determined, which is not limited to the embodiment of the present application.
For the above alternative embodiments, the first index threshold, the second index threshold, and the third index threshold may be 80%,70%, and 100%, respectively. Correspondingly, the statistics of the incremental code coverage, the statistics of the automated incremental code coverage and the statistics of the incremental analysis rate refer to the average of the incremental code coverage of the panelists and the average of the automated incremental code coverage of the panelists, respectively.
In an embodiment of the present application, as an optional implementation manner, the improvement information includes cause analysis information, an improvement scheme, an improvement period, and an improvement scheme plan completion time. By reason analysis information, improvement scheme, improvement period, improvement scheme plan completion time, improvement personnel can be facilitated to quickly re-improve the code.
In an embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following steps:
acquiring the current time of the system;
calculating a difference between the current time of the system and the planned completion time of the improvement plan;
judging whether the difference between the current time of the system and the planned completion time of the improvement scheme is smaller than a preset time threshold, and if the difference between the current time of the system and the planned completion time of the improvement scheme is smaller than the preset time threshold, generating time early warning information and pushing the time early warning information.
According to the optional implementation mode, the current time of the system is obtained, the difference value between the current time of the system and the planned completion time of the improvement scheme can be calculated, whether the difference value between the current time of the system and the planned completion time of the improvement scheme is smaller than a preset time threshold value or not is judged, the difference value between the current time of the system and the planned completion time of the improvement scheme is smaller than the preset time threshold value, time early warning information is generated, the time early warning information is pushed, and finally relevant personnel are timely reminded to timely rearrange codes which do not meet requirements.
For the above alternative embodiments, the preset time threshold may be 1 day or 2 days, which is not limited to the embodiment of the present application.
In an embodiment of the present application, as an optional implementation manner, in the step: before generating the time early warning information and pushing the time early warning information, the method of the embodiment of the application further comprises the following steps:
acquiring state information of an improved scheme;
judging whether the state information of the improved scheme indicates that the improved scheme is executed, and if the improved scheme is not executed, triggering the execution to generate time early warning information and pushing the time early warning information.
According to the alternative embodiment, by acquiring the state information of the improved scheme, whether the state information of the improved scheme represents that the improved scheme is executed or not can be judged, if the improved scheme is not executed, the execution is triggered to generate time early-warning information and push the time early-warning information, and finally, the situation that the time early-warning information is still generated and the time early-warning information is pushed when the improved scheme is executed is avoided.
In an alternative embodiment, the target graph includes a bar graph and a trend line graph. According to the alternative implementation mode, the code coverage rate index data can be intuitively and accurately displayed through the straight bar graph and the trend line graph.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of a test data processing device for incremental codes according to an embodiment of the present application, and as shown in fig. 2, the device according to the embodiment of the present application includes the following functional modules:
a code detection module 201, configured to identify a code increment line of a target version based on a development model when it is detected that a user submits a code update for the target version, where the code increment line of the target version is modified by the user based on a demand task;
the testing module 202 is configured to test the code increment row of the target version based on a preset test case, and obtain personal code coverage index data of the user, where the personal code coverage index data includes increment code coverage, automatic increment code coverage, and increment analysis rate;
the generating module 203 is configured to generate a target chart and display the target chart, where the target chart is used to display the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate.
The device provided by the embodiment of the application can identify the code increment row of the target version based on the research and development model when detecting that the user submits the code update for the target version, wherein the code increment row of the target version is personally modified by the user based on the demand task, further the code increment row of the target version can be tested based on the preset test case, and personal code coverage index data of the user can be obtained, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate, and finally the personal code coverage index data of each user can be determined, so that the problem that the integral increment code coverage related index cannot reflect the personal code change quality is avoided. In addition, by generating the target chart and displaying the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be displayed based on the target chart, thereby accurately and intuitively displaying the code improvement quality of each developer.
It should be noted that, for other detailed descriptions of the apparatus according to the embodiment of the present application, please refer to the related description of the first embodiment of the present application, which is not repeated herein.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 3, the electronic device according to the embodiment of the present application includes:
a processor 301; and
a memory 302 configured to store machine readable instructions that, when executed by the processor 301, perform a test data processing method of delta code as in any of the previous embodiments.
According to the electronic equipment provided by the embodiment of the application, by executing the test data processing method, when the fact that the user submits the code update aiming at the target version is detected, the code increment row of the target version is identified based on the research and development model, wherein the code increment row of the target version is personally modified by the user based on the demand task, further the code increment row of the target version can be tested based on the preset test case, personal code coverage index data of the user can be obtained, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate, the personal code coverage index data of each user can be finally determined, and the problem that the integral increment code coverage related index cannot reflect the personal code change quality is avoided. In addition, by generating the target chart and displaying the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be displayed based on the target chart, thereby accurately and intuitively displaying the code improvement quality of each developer.
Example IV
An embodiment of the present application provides a storage medium storing a computer program that is executed by a processor to perform the test data processing method of the incremental code of any one of the foregoing embodiments.
The storage medium of the embodiment of the application can identify the code increment row of the target version based on the research and development model when detecting that the user submits the code update for the target version by executing the test data processing method, wherein the code increment row of the target version is personally modified by the user based on the demand task, further the code increment row of the target version can be tested based on the preset test case, and personal code coverage index data of the user can be obtained, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate, and finally the personal code coverage index data of each user can be determined, so that the problem that the relevant index of the integral increment code coverage cannot reflect the personal code change quality is avoided. In addition, by generating the target chart and displaying the target chart, the incremental code coverage, the automated incremental code coverage, and the incremental analysis rate can be displayed based on the target chart, thereby accurately and intuitively displaying the code improvement quality of each developer.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this document, 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.
The above embodiments of the present application are only examples, and are not intended to limit the scope of the present application, and various modifications and variations will be apparent 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 protection scope of the present application.

Claims (10)

1. A method of processing test data for an incremental code, the method comprising:
identifying a code delta row of a target version based on a development model when it is detected that a user submitted a code update for the target version, wherein the code delta row of the target version is personally modified by the user based on a demand task;
testing the code increment row of the target version based on a preset test case, and obtaining personal code coverage index data of the user, wherein the personal code coverage index data comprises increment code coverage, automatic increment code coverage and increment analysis rate;
and generating a target chart and displaying the target chart, wherein the target chart is used for displaying the increment code coverage, the automatic increment code coverage and the increment analysis rate.
2. The method of claim 1, wherein the development model comprises a PAFlow model and a Fork Pul l Request model.
3. The method of claim 1, wherein the method further comprises:
determining the group to which the user belongs;
counting the personal code coverage index data of all panelists in the group, and obtaining a statistical result, wherein the statistical result comprises a statistical value of the incremental code coverage, a statistical value of the automatic incremental code coverage and a statistical value of the incremental analysis rate;
and sequentially judging whether the statistical value of the increment code coverage is larger than a preset first index threshold value, judging whether the statistical value of the automatic increment code coverage is larger than a preset second index threshold value, judging whether the statistical value of the increment analysis rate is larger than a preset third index threshold value, and generating improvement information if at least one statistical value does not meet the condition.
4. The method of claim 3, wherein the improvement information comprises cause analysis information, improvement cycle, improvement plan completion time.
5. The method of claim 4, wherein the method further comprises:
acquiring the current time of the system;
calculating a difference between the current time of the system and the planned completion time of the improvement plan;
judging whether the difference value between the current time of the system and the planned completion time of the improvement scheme is smaller than a preset time threshold value, and if the difference value between the current time of the system and the planned completion time of the improvement scheme is smaller than the preset time threshold value, generating time early warning information and pushing the time early warning information.
6. The method of claim 5, wherein prior to the generating and pushing the time alert information, the method further comprises:
acquiring state information of the improved scheme;
judging whether the state information of the improved scheme indicates that the improved scheme is executed, and if the improved scheme is not executed, triggering and executing the generation time early warning information and pushing the time early warning information.
7. The method of claim 3, wherein the target graph comprises a bar graph and a trend line graph.
8. A test data processing device for delta codes, the device comprising:
the code detection module is used for identifying a code increment row of a target version based on a research and development model when detecting that a user submits code update for the target version, wherein the code increment row of the target version is personally modified by the user based on a demand task;
the testing module is used for testing the code increment row of the target version based on a preset test case and obtaining personal code coverage rate index data of the user, wherein the personal code coverage rate index data comprises increment code coverage rate, automatic increment code coverage rate and increment analysis rate;
the generation module is used for generating a target chart and displaying the target chart, wherein the target chart is used for displaying the increment code coverage rate, the automatic increment code coverage rate and the increment analysis rate.
9. An electronic device, comprising:
a processor; and
a memory configured to store machine readable instructions that, when executed by the processor, perform the test data processing method of delta code according to any of claims 1-7.
10. A storage medium storing a computer program for executing the test data processing method of the delta code according to any one of claims 1 to 7 by a processor.
CN202311006047.4A 2023-08-10 2023-08-10 Test data processing method and device for increment codes, electronic equipment and storage medium Pending CN117033215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311006047.4A CN117033215A (en) 2023-08-10 2023-08-10 Test data processing method and device for increment codes, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311006047.4A CN117033215A (en) 2023-08-10 2023-08-10 Test data processing method and device for increment codes, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117033215A true CN117033215A (en) 2023-11-10

Family

ID=88601756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311006047.4A Pending CN117033215A (en) 2023-08-10 2023-08-10 Test data processing method and device for increment codes, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117033215A (en)

Similar Documents

Publication Publication Date Title
CN110287052B (en) Root cause task determination method and device for abnormal task
CN111459700B (en) Equipment fault diagnosis method, diagnosis device, diagnosis equipment and storage medium
US8745588B2 (en) Method for testing operation of software
CN104137078B (en) Operation management device, operation management method, and program
US7757125B2 (en) Defect resolution methodology and data defects quality/risk metric model extension
CN109934268B (en) Abnormal transaction detection method and system
JPH10510385A (en) Method and system for software quality architecture based analysis
CN113010389A (en) Training method, fault prediction method, related device and equipment
CN111160329A (en) Root cause analysis method and device
CN111694815A (en) Database anomaly detection method and device
CN117573552A (en) Account consistency test method, device, equipment, medium and product
CN112486841A (en) Method and device for checking data collected by buried point
CN112652351A (en) Hardware state detection method and device, computer equipment and storage medium
CN110546616A (en) probability metric for random hardware faults
CN117033215A (en) Test data processing method and device for increment codes, electronic equipment and storage medium
US20220222580A1 (en) Deterioration detection method, non-transitory computer-readable storage medium, and information processing device
CN115587333A (en) Failure analysis fault point prediction method and system based on multi-classification model
CN115563008A (en) Code coverage rate detection system, method, device and storage medium
CN113868137A (en) Method, device and system for processing buried point data and server
CN113742213A (en) Method, system, and medium for data analysis
JP2012145987A (en) Method for indicating software performance problem
CN113762665B (en) Real-time index related real-time data backtracking method and system
Bulut Conducting Monte Carlo Simulations in R
CN110795342A (en) Error detection method and device
CN112612882B (en) Review report generation method, device, equipment and storage medium

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