CN108205492A - For the method and apparatus of the Test Driven Development in continuous integrating frame - Google Patents

For the method and apparatus of the Test Driven Development in continuous integrating frame Download PDF

Info

Publication number
CN108205492A
CN108205492A CN201611185602.4A CN201611185602A CN108205492A CN 108205492 A CN108205492 A CN 108205492A CN 201611185602 A CN201611185602 A CN 201611185602A CN 108205492 A CN108205492 A CN 108205492A
Authority
CN
China
Prior art keywords
code
test code
list set
committed
test
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
CN201611185602.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.)
Alcatel Lucent SAS
Alcatel Optical Networks Israel Ltd
Original Assignee
Alcatel Optical Networks Israel 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 Alcatel Optical Networks Israel Ltd filed Critical Alcatel Optical Networks Israel Ltd
Priority to CN201611185602.4A priority Critical patent/CN108205492A/en
Publication of CN108205492A publication Critical patent/CN108205492A/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/3684Test management for test design, e.g. generating new test cases
    • 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/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • 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/3688Test management for test execution, e.g. scheduling of test suites

Abstract

Embodiment of the disclosure is related to for the method and apparatus of the Test Driven Development in continuous integrating frame.In one aspect, a kind of method includes:First list set is generated for the test code of initial development, each list in first list set includes the identification information related at least part of the test code;And first list set is sent to server, in order to which the test code is committed to code library by server.On the other hand, a kind of method includes:Determine the identification information related with test code to be committed whether in first list set;And in response to determining that test code to be committed in first list set, is committed to code library by the identification information related with test code to be committed.Thus, it is possible to the submission of completion code as early as possible, is better achieved continuous integrating, convenient for team unity and management.

Description

For the method and apparatus of the Test Driven Development in continuous integrating frame
Technical field
Embodiment of the disclosure is related to computer realm, more particularly relates to continuous integrating (Continuous Integration, CI) method of Test Driven Development (Test-Driven Development, TDD) in frame, equipment and Computer program product.
Background technology
CI is a kind of practice of software, it is desirable that Team Member often integrates their work.Everyone at least collects daily Into primary, this causes to have daily multiple integrated.Every time collection Chengdu by the structure (including compiling, unit testing etc.) of automation come Verification, so as to find integrated mistake as soon as possible.The thinking of CI is in order to quickly pinpoint the problems, so as to be provided to each developer Work feedback, it is therefore necessary to its work of rapid evaluation in some way.
TDD is a kind of novel development approach different from traditional software development process.It requires writing some function Product code before first write test code, then write the product code for passing through test, pushed from there through test The progress entirely developed.This helps to write succinct available and high quality code, and accelerate development process.
Invention content
Generally, embodiment of the disclosure provides method, equipment and the computer program production for the TDD in CI frames Product.
In the disclosure in a first aspect, providing the method for the TDD for CI frames of implementation a kind of.This method includes:Needle First list set is generated to the test code of initial development, each list in the first list set include with it is described Test the related identification information of at least part of code;And the first list set is sent to server, in order to The test code is committed to code library by the server.
In the second aspect of the disclosure, a kind of method of the TDD for CI frames is also provided.This method includes:Determine with Whether in first list set, the first list set is from user terminal to the related identification information of test code to be committed Test code building receive and that initial development is directed to by the user terminal, each list in the first list set Include the identification information related at least part for testing code of the initial development;And in response to determining to treat with described Submission tests the related identification information of code in the first list set, and the test code to be committed is committed to Code library.
In the third aspect of the disclosure, a kind of electronic equipment is provided.The equipment includes:Processing unit;And memory, institute It states memory and is stored with instruction, described instruction causes the electronic equipment when being performed by the processing unit:For initially opening The test code of hair and generate first list set, each list in the first list set include and the test code The related identification information of at least part;And the first list set is sent to server, in order to the service The test code is committed to code library by device.
In the fourth aspect of the disclosure, a kind of electronic equipment is also provided.The equipment includes:Processing unit;And memory, The memory is stored with instruction, and described instruction causes the electronic equipment when being performed by the processing unit:It determines with treating Submission tests the related identification information of code whether in first list set, and the first list set is terminated from user Test code building receive and that initial development is directed to by the user terminal, each list in the first list set is equal Include the identification information related at least part for testing code of the initial development;And in response to it is described to be committed The related identification information of test code in the first list set, the test code to be committed will be submitted to be committed to Code library.
Other aspects of the disclosure further include computer program product.The computer program product is tangibly stored in non- On transient state computer-readable medium and including machine-executable instruction, these machine-executable instructions make machine when executed Perform the one or more steps according to the above method.
It should be appreciated that the content described in Summary is not intended to limit the key or again of the embodiment of the present disclosure Feature is wanted, it is also non-to be used to limit the scope of the present disclosure.The other feature of the disclosure will be easy to understand by following description.
Description of the drawings
With reference to attached drawing and with reference to described further below, above and other feature, advantage and the aspect of each embodiment of the disclosure It will be apparent.In the accompanying drawings, the same or similar reference numeral represents the same or similar element, wherein:
Fig. 1 shows the schematic diagram of the example process of CI frames that the embodiment of the present disclosure is related to;
Fig. 2 shows the schematic diagrames of the example process of TDD that the embodiment of the present disclosure is related to;
Fig. 3 shows the flow chart of the method for the TDD in CI frames according to the embodiment of the present disclosure;
Fig. 4 shows the flow chart of the method for the TDD in CI frames according to the embodiment of the present disclosure;
Fig. 5 shows the flow chart of the method for the TDD in CI frames according to the embodiment of the present disclosure;
Fig. 6 shows the schematic block diagram of the device for the TDD in CI frames according to the embodiment of the present disclosure;
Fig. 7 shows the schematic block diagram of the device for the TDD in CI frames according to the embodiment of the present disclosure;With And
Fig. 8 shows the schematic block diagram for the electronic equipment for being adapted for carrying out the embodiment of the present disclosure.
Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although shown in the drawings of some of the disclosure Embodiment, it should be understood that, the disclosure can be realized, and should not be construed as being limited to this by various forms In the embodiment that illustrates, it is in order to more thorough and be fully understood by the disclosure to provide these embodiments on the contrary.It should be understood that It is being given for example only property of the accompanying drawings and embodiments effect of the disclosure, is not intended to limit the protection domain of the disclosure.
As previously mentioned, in CI frames, each developer needs at least to submit developed code daily, such as Code library is committed to, so that follow-up service control manager (SCM) carries out Integrated Simulation work based on code library, convenient for sending out early Existing problem simultaneously feeds back to developer.Fig. 1 shows the signal of the example process 100 for the CI frames that the embodiment of the present disclosure is related to Figure, is shown the illustrative process submitted about code.As shown in Figure 1,110, the code of developer's exploitation, including Code and/or product code are tested, is performed process of compilation first, such as including compiling and linking.Code is converted into as a result, Executable file.Then 120, (unit testing, UT) is tested for executable file execution unit.As known, UT is Finger is checked and is verified to the minimum Testable unit in software.If product code is used by testing whole tests of code The test of example, i.e. UT passes through, then 130, code is submitted to code library.As it can be seen that in CI frames, code must be successfully tested It can just be submitted.
Fig. 2 shows the schematic diagrames of the example process 200 of TDD that the embodiment of the present disclosure is related to.As shown in Fig. 2, TDD mistakes Journey 200 can include code development process 210 and code refactoring process 220.In 210 code development, test generation is first write Code, as shown in 211.Then 212, test is performed, such as based on the test code to existing product based on the test code Code performs test.If be successfully tested, 211 are returned, continues to write test code.If in 212 test crash, enter 213, product code is write or rewritten, enables to the test by testing code.
If the test crash of revised product code, continue to rewrite product code.If it succeeds, into code Restructuring procedure 220.As known, code refactoring refers to improve the quality of software and performance by adjusting code so that program is set Meter pattern and framework are more rational, improve the autgmentability and maintainability of software.In the quality through 220 post code of code refactoring process In the case of satisfactory, it is back to continue to perform code development process 210.By this method, it is iteratively performed code development mistake Journey 210 and code refactoring process 220, so as to fulfill software development.As it can be seen that in the starting stage (such as 211 and 212) of TDD, need It designs test code and causes test crash.
In this way, there can be conflict when TDD is attached in CI frames, that is, require code that must test in CI frames Success can be just submitted, and it is expected test crash in the TDD starting stages.In this case, developer has to privately owned New test code is safeguarded on ground, until all product codes pass through these test codes.On the one hand, this violates CI spirit. In CI, it is proposed that completion code is submitted as early as possible, to avoid more conflicts and convenient for pinpointing the problems early.However existing In scheme, the submission of test code and product code has to be merely deferred until that the exploitation completion of test code and product code is Only.On the other hand, this can cause other developers that can not obtain newest code from code library in time, be unfavorable for exploitation group The cooperation of team.In another aspect, Executive Team can not also get every daily progress of TDD from CI plug-in management tasks.
In view of the above problems, the central scope of the embodiment of the present disclosure is that:Cause initial development or test newly developed Code is directly committed to code library, without successfully passing UT.Thus, it is possible to the submission of completion code as early as possible, preferably in fact Existing continuous integrating, convenient for team unity and management.This is described in more detail below in conjunction with the accompanying drawings.
Fig. 3 shows the flow chart of the method 300 for the TDD in CI frames according to the embodiment of the present disclosure.This method 300 can hold implementation in user (such as developer).As shown in figure 3,310, developer can be directed to initial development or Test code building first list set newly developed.First list set can include at least one list, each list packet Containing the identification information related at least part of the test code.
In one embodiment, corresponding list can be generated for the functional block of the test code.For example, test generation Writing for code can each functional block such as IP multimedia subsystem (IMS) module based on required product, long term evolution (LTE) Module, global system for mobile communications (GSM) module etc. and carry out.Correspondingly, it can respectively be generated pair for these functional blocks The list answered.In one embodiment, list can include the mark of functional block and the mark of function test case in the block, As the identification information related at least part of the test code.In accordance with an embodiment of the present disclosure, this may be used in list Field is known or any desired manner of following exploitation is write.For example, XML format may be used in list.As one Example can carry out all test cases of tissue based on the feature of such as functional block etc.It is as shown below:
Wherein for feature " feature1 " write test case TestCase1, TestCase2 ..., TestCase10, and for feature " feature2 " write test case TestCaseA, TestCaseB ..., TestCaseN。
320, the first list set of generation is sent to server, in order to which server is committed to generation by code is tested Code library.Server can be based on first list set come so that the test code being present in first list set can be submitted To code library, without successfully passing UT.In one embodiment, it can be carried using first list set as source code with waiting At least one in the test code and product code of friendship is sent collectively to server.It for example, can be by first list collection cooperation To test source code, server is sent collectively to test code to be committed and/or product code.In the alternative reality of the disclosure It applies in example, first list set can be individually sent to server.In one embodiment, for example, adding or deleting In the case of test case, first list set can be updated, and updated first list set is sent to server.
Fig. 4 shows the flow chart of the method 400 for the TDD in CI frames according to the embodiment of the present disclosure.This method 400 can implement in server end.In accordance with an embodiment of the present disclosure, server can be received from the to be committed of developer Test code and product code.In accordance with an embodiment of the present disclosure, server may also receive from the first list of developer Set.
As shown in figure 4,410, whether server can determine test code to be committed in first list set.Such as Above in conjunction with 310 descriptions of Fig. 3, each list in first list set can include and the test code of initial development Related identification information at least partially.In one embodiment, the list in the first list set that server receives can To include the test mark of each functional block of code of initial development and the mark of function test case in the block.
In accordance with an embodiment of the present disclosure, server can determine that the test of each functional block of test code to be committed is used Example identifies whether to be present in the list of first list set.If it is present into 420, by test code to be committed It is committed to code library.It is just submitted so that the test code of initial development need not successfully pass UT, but is directly committed to Code library.It is, the test code that is not needed upon in first list set performs UT.In this way, it can cause initial The test code of exploitation can be committed to code library as soon as possible, so as to which continuous integrating be better achieved, convenient for team unity and Management improves software development efficiency.
On the other hand, it is to be committed if determining test code to be committed not in first list set 410 Code is tested in second list set.Such as second list set can be the usual row for performing test code used in UT Table (regression test list).Then 430, UT is performed, and determine whether UT passes through based on second list set.If 430 It determines that UT is passed through, then test code to be committed is committed to code library.It will be appreciated that here in order to avoid obscuring this hair Submission that is bright, only describing the submission for testing code and do not describe product code.But in practice, product code needs successfully to lead to Crossing the UT based on second list set can just be submitted.
If do not passed through in 430 determining UT, 440, user terminal such as developer is to refresh code for notice, directly Until by UT.In accordance with an embodiment of the present disclosure, UT is performed only for the test code in second list set, and logical Corresponding test code and product code are submitted in the case of crossing UT.
It is true 410 above in conjunction with being used in the TDD methods in CI frames according to the embodiment of the present disclosure described in Fig. 4 It does not need to perform UT to the test code in the case of determining test code to be committed in first list set, and directly submits To code library.In the additional embodiment of the disclosure, can also be directed to the test code perform UT and record as a result, for The UT percent of pass of test code in subsequent statistical first list set, so as to facilitate the promotion of the management of team and exploitation.It should Although it is understood that performing UT to the test code here, standard is not submitted as code.With reference to Fig. 5 to this It is described in detail.Fig. 5 shows the flow chart of the method 500 for the TDD in CI frames according to the embodiment of the present disclosure.
If as shown in figure 5, determine that test code to be committed in first list set, can enter 410 510, UT is performed based on test code to be committed, and 520, record UT's as a result, such as UT success or failures.It is, If test code to be committed in first list set, temporarily be not included in code submit standard, but record with Its corresponding UT result.With the propulsion of exploitation, UT results can also change therewith.It is possible thereby to facilitate the management and exploitation of team Promotion.Such as 530, can determine to be directed to based on the result recorded and the relevant test code of first list set UT percent of pass.For example, submitted based on daily code, it may be determined that the UT of the test code in daily first list set leads to Cross rate.In one embodiment, it may be determined that test the overall percent of pass of code.In an alternative embodiment, it may be determined that be directed to Test the percent of pass of the specific function block of code.
540, can present determined by UT percent of pass.The presentation can appointing by known in the art or following exploitation Meaning form is implemented.For example, comma separated value (CSV), text, XML, hypertext markup language (HTML) etc. number can be passed through UT percent of pass is presented according to form.In one embodiment, can by the diagrammatic form of such as block diagram, curve graph etc come The UT percent of pass in special time period is presented, thus more intuitively reflection code development is in progress, and facilitates team unity and management.
On the other hand, 550, whether UT percent of pass determined by judgement is more than predetermined threshold.In one embodiment, may be used To judge whether UT percent of pass is 100%.It will be appreciated that the predetermined threshold can be based on empirically determined, the application to this not It is restricted.If being less than predetermined threshold in 550 determining UT percent of pass, 510 are returned.If surpass in 550 determining UT percent of pass Predetermined threshold is crossed, then is moved to the identification information in first list set in second list set 560.This is also indicated that for just The code development phase of test code for beginning to develop is completed.Iteration is performed by way of according to Fig. 4 and Fig. 5, can constantly be pushed away Into code development process, it is possible thereby to which the TDD in CI frames is better achieved.
So far the method for the TDD in CI frames according to the embodiment of the present disclosure is described.According to the embodiment of the present disclosure Method, initial development or test code newly developed can be caused directly to be committed to code library, without passing through UT.By This, can completion code as early as possible submission, continuous integrating is better achieved, convenient for team unity and management.
Correspondingly, the embodiment of the present disclosure is also provided for the device of the TDD in CI frames.With reference to Fig. 6 and Fig. 7 to this It is described.Fig. 6 shows the schematic structure frame of the device 600 for the TDD in CI frames according to the embodiment of the present disclosure Figure.The device 600 can be held in user (such as developer) to be implemented.
As shown in fig. 6, device 600 can include generation unit 610 and transmitting element 620.Generation unit 610 can by with Put for being directed to the test code of initial development and generate first list set, each list in first list set include with The related identification information of described at least part for testing code.In one embodiment, the identification information can include with At least one of in lower:The identifying of functional block in the test code, the mark of function test case in the block.One In a embodiment, generation unit 610 can be configured for generating corresponding row for each functional block in test code Table.
Transmitting element 620 can be configured for first list set being sent to server, in order to the server The test code is committed to code library.In one embodiment, transmitting element 620 can be configured for described first List collection is sent collectively to the service as at least one in source code, with test code and product code to be committed Device.
Fig. 7 shows the schematic structure frame of the device 700 for the TDD in CI frames according to the embodiment of the present disclosure Figure.The device 700 can be implemented in server end.As shown in fig. 7, device 700 can include determining that unit 710 and submit unit 720.Whether determination unit 710 can be configured for determining the identification information related with test code to be committed in first row In table set, the first list set is that the test code of initial development is received and be directed to by the user terminal from user terminal Generation, each list in the first list set is included to be had at least part of the test code of the initial development The identification information of pass.
Submit unit 720 that can be configured for determining and the test code to be committed in response to determination unit 710 Related identification information is committed to code library in the first list set, by the test code to be committed.At one In embodiment, submit unit 720 that can also include (not shown):First test subelement, is configured in response to true Order member 710 determines the identification information related with the test code to be committed not in the first list set:It is based on UT is performed with the relevant test code of second list set, and each list in the second list set includes with passing through Rate is more than the related identification information of at least part of the test code of predetermined threshold;And subelement is submitted, it is configured for If by the UT, the test code to be committed is submitted.
In one embodiment, device 700 can also include (not shown):Second test subelement, is configured to use It is determined in response to determination unit 710 with the to be committed related identification information of code of testing in the first list set In:The UT is performed based on the test code to be committed;Subelement is recorded, is configured for recording the knot of the UT Fruit;And determination subelement, be configured for the record as a result, determine for related to the first list set Test code UT percent of pass.In one embodiment, device 700 can also include (not shown):Display unit, quilt It is configured to present the percent of pass of the UT.In one embodiment, device 700 can also include (not shown):It is mobile If being configured for the percent of pass more than predetermined threshold, the identification information in the first list set is moved for unit Into the second list set.
It should be appreciated that each unit method 300- with being described with reference to figure 3 to Fig. 5 respectively described in device 600 and 700 Corresponding steps in 500 are corresponding.Also, the operation of device 600 and 700 and unit wherein included and feature both correspond to Text combines corresponding operating and the feature that Fig. 3 to Fig. 6 is described, and has same effect, and detail repeats no more.
In device 600 and 700 included unit can profit realize in various manners, including software, hardware, firmware or It is arbitrarily combined.In one embodiment, one or more units can be realized, such as store using software and/or firmware Machine-executable instruction on a storage medium.Other than machine-executable instruction or alternatively, device 600 and 700 In some or all of unit can be realized at least partly by one or more hardware logic components.As example rather than Limitation, the hardware logic component for the exemplary type that can be used include field programmable gate array (FPGA), application-specific integrated circuit (ASIC), application specific standard product (ASSP), system on chip (SOC), Complex Programmable Logic Devices (CPLD) etc..
Fig. 6 and these units shown in fig. 7 can partially or entirely be embodied as hardware module, software module, consolidate Part module or its arbitrary combination.Particularly, in certain embodiments, above-described flow, method or process can be by depositing Storage system or host corresponding with storage system are realized independently of the hardware in other computing devices of storage system.
Fig. 8 shows a schematic block diagram that can be used for implementing the electronic equipment 800 of embodiment of the disclosure.Such as figure Shown, electronic equipment 800 includes central processing unit (CPU) 801, can be according to being stored in read-only memory (ROM) 802 Computer program instructions or the computer program that is loaded into random access storage device (RAM) 803 from storage unit 808 refer to It enables, to perform various appropriate actions and processing.In RAM803, it can also store electronic equipment 800 and operate required various journeys Sequence and data.CPU 801, ROM 802 and RAM803 are connected with each other by bus 804.Input/output (I/O) interface 805 It is connected to bus 804.
Multiple components in electronic equipment 800 are connected to I/O interfaces 805, including:Input unit 806, such as keyboard, mouse Mark etc.;Output unit 807, such as various types of displays, loud speaker etc.;Storage unit 808, such as disk, CD etc.;With And communication unit 809, such as network interface card, modem, wireless communication transceiver etc..Communication unit 809 allows electronic equipment 800 Information/data is exchanged with other equipment by the computer network and/or various telecommunication networks of such as internet.
Each process as described above and processing, such as method 300-500 can be performed by processing unit 801.For example, In some embodiments, method 300-500 can be implemented as computer software programs, be tangibly embodied in machine readable Jie Matter, such as storage unit 808.In some embodiments, computer program it is some or all of can via ROM 802 and/ Or communication unit 809 and be loaded into and/or be installed on electronic equipment 800.When computer program be loaded into RAM 803 and by When CPU 801 is performed, the one or more steps of method as described above 400-700 can be performed.
In general, the various example embodiments of the disclosure can hardware or special circuit, software, logic or its What implements in combining.Some aspects can be implemented within hardware, and other aspect can by controller, microprocessor or Implement in firmware or software that other computing devices perform.When the various aspects of embodiment of the disclosure are illustrated or described as frame When figure, flow chart or other certain figures of use represent, it will be understood that box described herein, device, system, techniques or methods can Using in terms of as unrestricted example in hardware, software, firmware, special circuit or logic, common hardware or controller or other It calculates and implements in equipment or its certain combination.
As an example, embodiment of the disclosure can be described in the context of machine-executable instruction, machine can be held Row instruction is such as included in the program module performed in the device on the true or virtual processor of target.In general, Program module includes routine, program, library, object, class, component, data structure etc., performs specific task or realizes specific Abstract data structure.In embodiments, the function of program module can merge between described program module or Segmentation.It can be performed in local or distributed apparatus for the machine-executable instruction of program module.In distributed apparatus In, program module can be located locally in remote medium storage the two.
The computer program code of method for implementing the present disclosure can be write with one or more programming languages.These Computer program code can be supplied to the processing of all-purpose computer, special purpose computer or other programmable data processing units Device so that program code by computer or other programmable data processing units execution when, cause flow chart and/ Or function/operation is carried out specified in block diagram.Program code can completely on computers, part on computers, conduct Independent software package, part are on computers and part is held on a remote computer or server on the remote computer or completely Row.
In the context of the disclosure, machine readable media can include or store to be used for or perform system about instruction Any tangible medium of the program of system, device or equipment.Machine readable media can be that machine-readable signal medium or machine can Read storage medium.Machine readable media can include but is not limited to electronics, magnetic, it is optical, electromagnetism, infrared or partly lead System system, device or equipment or its any appropriate combination.The more detailed example of machine readable storage medium is included with one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memories (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), light storage device, magnetic storage apparatus or its is any appropriate Combination.
In addition, although operation is depicted with particular order, this simultaneously should not be construed this generic operation is required to show The operation of all diagrams with sequential order is completed or performed to particular order to obtain expected result.In some cases, it is more Task or parallel processing can be beneficial.Similarly, although discussed above contain certain specific implementation details, this is not It should be interpreted that any invention of limitation or the scope of the claims, and should be interpreted that the specific embodiment to specific invention can be directed to Description.Certain features in this specification described in the context of separated embodiment can also combined implementation in single reality It applies in example.Conversely, various features described in the context of single embodiment can also discretely multiple embodiments or Implement in any appropriate sub-portfolio.
Although with specific to the language description of structural features and or methods of action theme, but it is to be understood that institute The theme limited in attached claim is not limited to above-described special characteristic or action.On the contrary, above-described specific spy Action of seeking peace is disclosed as the exemplary forms for realizing claim.

Claims (19)

1. the method that one kind is used for the Test Driven Development (TDD) in continuous integrating (CI) frame, including:
First list set is generated for the test code of initial development, each list in the first list set includes The identification information related at least part of the test code;And
The first list set is sent to server, in order to which the test code is committed to code by the server Library.
2. according to the method described in claim 1, wherein described generation first list set includes:
Corresponding list is generated for each functional block in the test code.
3. according to the method described in claim 1, wherein described identification information includes at least one of the following:The test generation The identifying of functional block, the mark of function test case in the block in code.
4. include according to the method described in claim 1, wherein sending the first list set:
Using the first list set as at least one in source code, with test code to be committed and product code together It is sent to the server.
5. the method that one kind is used for the Test Driven Development (TDD) in continuous integrating (CI) frame, including:
The identification information related with test code to be committed is determined whether in first list set, the first list set It is to be received from user terminal and the test code building by the user terminal for initial development, in the first list set Each list include the related identification information of at least part with the test code of the initial development;And
In response to determining the identification information related with the test code to be committed in the first list set, by described in Test code to be committed is committed to code library.
6. it according to the method described in claim 5, further includes:
In response to determining the identification information related with the test code to be committed not in the first list set:
Based on being tested with the relevant test code of second list set come execution unit, each row in the second list set Table includes the identification information related more than at least part of the test code of predetermined threshold with percent of pass;And
If by the unit testing, the test code to be committed is submitted.
7. it according to the method described in claim 6, further includes:
In response to determining the identification information related with the test code to be committed in the first list set:
The unit testing is performed based on the test code to be committed;
Record the result of the unit testing;And
Based on the record as a result, determining to be directed to logical with the unit testing of the relevant test code of the first list set Cross rate.
8. it according to the method described in claim 7, further includes:
The percent of pass of the unit testing is presented.
9. it according to the method described in claim 7, further includes:
If the percent of pass is more than predetermined threshold, the identification information in the first list set is moved into the secondary series In table set.
10. a kind of electronic equipment, including:
Processing unit;And
Memory, the memory are stored with instruction, and described instruction causes the electronics to set when being performed by the processing unit It is standby:
First list set is generated for the test code of initial development, each list in the first list set includes The identification information related at least part of the test code;And
The first list set is sent to server, in order to which the test code is committed to code by the server Library.
11. equipment according to claim 10, wherein described instruction cause the electricity when being performed by the processing unit Sub- equipment:
Corresponding list is generated for each functional block in the test code.
12. equipment according to claim 10, wherein the identification information includes at least one of the following:The test The identifying of functional block in code, the mark of function test case in the block.
13. equipment according to claim 10, wherein described instruction cause the electricity when being performed by the processing unit Sub- equipment:
Using the first list set as at least one in source code, with test code to be committed and product code together It is sent to the server.
14. a kind of electronic equipment, including:
Processing unit;And
Memory, the memory are stored with instruction, and described instruction causes the electronics to set when being performed by the processing unit It is standby:
The identification information related with test code to be committed is determined whether in first list set, the first list set It is to be received from user terminal and the test code building by the user terminal for initial development, in the first list set Each list include the related identification information of at least part with the test code of the initial development;And
It, will be described in submission in response to the identification information related with the test code to be committed in the first list set Test code to be committed is committed to code library.
15. equipment according to claim 14, wherein described instruction cause the electricity when being performed by the processing unit Sub- equipment:
In response to determining the identification information related with the test code to be committed not in the first list set:
Based on being tested with the relevant test code of second list set come execution unit, each row in the second list set Table includes the identification information related more than at least part of the test code of predetermined threshold with percent of pass;And
If by the unit testing, the test code to be committed is submitted.
16. equipment according to claim 15, wherein, described instruction cause the electricity when being performed by the processing unit Sub- equipment:
In response to determining the identification information related with the test code to be committed in the first list set:
The unit testing is performed based on the test code to be committed;
Record the result of the unit testing;And
Based on the record as a result, determining to be directed to logical with the unit testing of the relevant test code of the first list set Cross rate.
17. equipment according to claim 16, wherein described instruction cause the electricity when being performed by the processing unit Sub- equipment:
The percent of pass of the unit testing is presented.
18. equipment according to claim 16, wherein described instruction cause the electricity when being performed by the processing unit Sub- equipment:
If the percent of pass is more than predetermined threshold, the identification information in the first list set is moved into the secondary series In table set.
19. a kind of computer program product, the computer program product is tangibly stored in non-transient computer-readable Jie In matter and including machine-executable instruction, the machine-executable instruction makes machine perform according to claim when executed The step of method described in any one of 1 to 9.
CN201611185602.4A 2016-12-20 2016-12-20 For the method and apparatus of the Test Driven Development in continuous integrating frame Pending CN108205492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611185602.4A CN108205492A (en) 2016-12-20 2016-12-20 For the method and apparatus of the Test Driven Development in continuous integrating frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611185602.4A CN108205492A (en) 2016-12-20 2016-12-20 For the method and apparatus of the Test Driven Development in continuous integrating frame

Publications (1)

Publication Number Publication Date
CN108205492A true CN108205492A (en) 2018-06-26

Family

ID=62604002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611185602.4A Pending CN108205492A (en) 2016-12-20 2016-12-20 For the method and apparatus of the Test Driven Development in continuous integrating frame

Country Status (1)

Country Link
CN (1) CN108205492A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880546A (en) * 2012-09-03 2013-01-16 上海方正数字出版技术有限公司 Software integration testing method and system based on extensible markup language (XML) database
CN104298588A (en) * 2013-07-16 2015-01-21 阿里巴巴集团控股有限公司 Continuous integration implementation method and device
CN104778032A (en) * 2014-01-09 2015-07-15 阿尔卡特朗讯 Method and equipment used for carrying out continuous integration
US20150286558A1 (en) * 2013-05-14 2015-10-08 Noblis, Inc. Method and system to automatically enforce a hybrid branching strategy
CN105608012A (en) * 2016-03-10 2016-05-25 武汉斗鱼网络科技有限公司 Automatic test method and automatic test system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880546A (en) * 2012-09-03 2013-01-16 上海方正数字出版技术有限公司 Software integration testing method and system based on extensible markup language (XML) database
US20150286558A1 (en) * 2013-05-14 2015-10-08 Noblis, Inc. Method and system to automatically enforce a hybrid branching strategy
CN104298588A (en) * 2013-07-16 2015-01-21 阿里巴巴集团控股有限公司 Continuous integration implementation method and device
CN104778032A (en) * 2014-01-09 2015-07-15 阿尔卡特朗讯 Method and equipment used for carrying out continuous integration
CN105608012A (en) * 2016-03-10 2016-05-25 武汉斗鱼网络科技有限公司 Automatic test method and automatic test system

Similar Documents

Publication Publication Date Title
US20210279577A1 (en) Testing of Computing Processes Using Artificial Intelligence
US8448146B2 (en) Generation of functional tests for re-hosted applications
US9501596B2 (en) Graphical design verification environment generator
US9202005B2 (en) Development and debug environment in a constrained random verification
US20130311827A1 (en) METHOD and APPARATUS for automatic testing of automation software
CN105143895B (en) Test class precompiled header is automatically generated from interactive graphical user interface
US20170235661A1 (en) Integration of Software Systems via Incremental Verification
CN108319575B (en) Page component checking method, device, server and storage medium
CN105335282A (en) Method and system for cross-platform test of applications
US20170168913A9 (en) Method and system for testing of applications in asset management software
CN112463154A (en) Page generation method, device and system and electronic equipment
US10929108B2 (en) Methods and systems for verifying a software program
CN106484389B (en) Action stream segment management
CN109710523B (en) Visual draft test case generation method and device, storage medium and electronic equipment
US20180349153A1 (en) Migration between different user interfaces of software programs
CN109298898B (en) Automatic configuration method and device for cloud computing resources
US20120311392A1 (en) Automated regression testing intermediary
EP2883134A1 (en) Executable software specification generation
Amirat et al. Automatic generation of PROMELA code from sequence diagram with imbricate combined fragments
CN113138937A (en) Test method and device
US9280627B1 (en) GUI based verification at multiple abstraction levels
US11055602B2 (en) Deep learning assignment processing method and apparatus, device and storage medium
CN108885574B (en) System for monitoring and reporting performance and correctness issues at design, compilation, and runtime
CN108205492A (en) For the method and apparatus of the Test Driven Development in continuous integrating frame
US9405514B1 (en) Process fragment management

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180626