CN105893259A - Code detection system, method and device - Google Patents
Code detection system, method and device Download PDFInfo
- Publication number
- CN105893259A CN105893259A CN201610196893.0A CN201610196893A CN105893259A CN 105893259 A CN105893259 A CN 105893259A CN 201610196893 A CN201610196893 A CN 201610196893A CN 105893259 A CN105893259 A CN 105893259A
- Authority
- CN
- China
- Prior art keywords
- information
- project
- code detection
- server
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
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)
- Stored Programmes (AREA)
Abstract
The invention discloses a code detection system, method and device, and belongs to the field of software development. The system comprises a version control server, a project management server, a code detection server and a database server. The project management server is used for acquiring a version log from the version control server and analyzing the version log to generate project change information, wherein the version log contains file change information of a file in a project, and the project change information is used for indicating the change condition of the project; the project management server is further used for updating historical project information in the database server according to the program change information, configuring a code detection task according to the project change information and issuing the code detection task to the code detection server. The code detection server is used for carrying out code detection according to the code detection task. The code detection system, method and device solve the problems that a large number of codes need to be modified, the efficiency of the manual configuration code detection process is low, and missing is likely to occur.
Description
Technical field
The present embodiments relate to field of software development, particularly to a kind of code detection system, method and dress
Put.
Background technology
Software development needs to experience very long development process, and on stream, developer needs continually
Code is modified.
In order to ensure to revise the availability of post code, and facilitating follow-up code maintenance, amended code needs
Will be through code detection.In correlation technique, amended code and corresponding examination criteria need on manually
Reach code detection server, code detection server according to this examination criteria, code is carried out detection and go forward side by side
Row feedback.
During realizing the present invention, inventor finds that prior art at least there is problems in that software is opened
During Faing, code needs to revise in a large number, and human configuration code detection process efficiency is relatively low and easily produces
Omit.
Summary of the invention
Need to revise in a large number to solve code in software development process, human configuration code detection process
Inefficient and the easy problem producing omission, embodiments provides a kind of code detection system, side
Method and device.Described technical scheme is as follows:
First aspect according to embodiments of the present invention, it is provided that a kind of code detection system, described system includes:
Version control server, project management server, code detection server and database server;
Project management server, for obtaining version log from version control server, comprises in version log
The document change information of file in project;Version log is analyzed, generates project modification information, project
Modification information is for the alteration of directory entry;
Project management server, is additionally operable to according to Xiang Mingda information the history item in database server
Information is updated;According to Xiang Mingda information configuration code detection task, issue to code detection server
Code detection task;
Code detection server, for carrying out code detection according to code detection task.
Second aspect according to embodiments of the present invention, it is provided that a kind of code detection method, described method includes:
Obtain version log from version control server, version log comprises the document change of file in project
Information;
Being analyzed version log, generate project modification information, Xiang Mingda information is for directory entry
Alteration;
According to Xiang Mingda information configuration code detection task;
Issuing code detection task to code detection server, code detection server is for according to code detection
Task carries out code detection.
The third aspect according to embodiments of the present invention, it is provided that a kind of code detection pillar, described device includes:
Acquisition module, for obtaining version log from version control server, comprises in project in version log
The document change information of file;
Generation module, for being analyzed version log, generates project modification information, Xiang Mingda information
Alteration for directory entry;
Configuration module, for according to Xiang Mingda information configuration code detection task;
Issuing module, for issuing code detection task to code detection server, code detection server is used
In carrying out code detection according to code detection task.
From version control server, version log is obtained by project management server, and according to this version day
Will analysis obtains Xiang Mingda information, thus is code detection server according to this Xiang Mingda information further
Configuration code Detection task, carries out code detection for code detection server;Solve in software development process
Code need revise in a large number, human configuration code detection process efficiency relatively low and easy produce omit ask
Topic;Reach project information to be updated automatically according to the amendment situation of code by project management server,
And instruction code detection server carries out real-time code detection further, it is to avoid produce while omitting, carry
The high efficiency of configuration code detection process.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below
The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 shows the structural representation of the code detection system that one embodiment of the invention provides;
Fig. 2 shows the flow chart of the code detection method that one embodiment of the invention provides;
Fig. 3 A shows the flow chart of the code detection method that another embodiment of the present invention provides;
Fig. 3 B shows the flow chart of the code detection method that further embodiment of the present invention provides;
Fig. 4 shows the block diagram of the code detecting apparatus that one embodiment of the invention provides;
Fig. 5 shows the block diagram of the code detecting apparatus that another embodiment of the present invention provides;
Fig. 6 shows the block diagram of the server that one embodiment of the invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention
Embodiment is described in further detail.
Refer to Fig. 1, it illustrates the structural representation of the code detection system that one embodiment of the invention provides
Figure.This code detection system includes that version control server 110, project management server 120, code are examined
Survey server 130 and database server 140.
Project management server 120, for obtaining version log, version log from version control server 110
In comprise the document change information of file in project;Version log is analyzed, generates project modification information,
Xiang Mingda information is for the alteration of directory entry.
Project management server 120, is additionally operable to according to Xiang Mingda information going through in database server 140
History project information is updated;According to Xiang Mingda information configuration code detection task, to code detection service
Device 130 issues code detection task.
Code detection server 130, for carrying out code detection according to code detection task.
During software project development, the item file of each version is stored in version control server.
The version control server cycle to schedule obtains the item file of latest edition, and by latest edition
Item file is analyzed with the item file of last revision, analyzes the file modification letter of item file
Breath, file increase the information such as information and file deletion information, and ultimately generate the version day comprising above-mentioned information
Will, i.e. comprises the detailed modification information of item file in project in this version log.Wherein, file modification letter
When breath can include revising the title of file, storage address, place project label, amendment people's mark, amendment
Between and amendment content etc.;Accordingly, file increase (or deletion) information comprises increase (or deletion) literary composition
The title of part, storage address, place project label, amendment people's mark, increase (or deletion) time and increasing
Add (or deletion) content etc..
Such as, version control server gets in the item file of latest edition, comprises project under project A
File 1, item file 3 and item file 4, and in the item file of last revision, project A comprises project
File 1 and item file 2.Version control server is i.e. in item file in latest edition 1 and last revision
Item file 1 is analyzed, and obtains the file modification information of item file 1;Due to latest edition and upper
Version is compared, and adds item file 4 and deletes item file 3, and version control server analysis obtains phase
The file answered increases information (for item file 4) and information (for item file 3) deleted by file.Enter
One step, version control server, with version number for index, generates the version log comprising above-mentioned information.
In order to know situation of change detailed in project, project management server press predetermined period (such as every
12 or 24 hours) at version control server, obtain up-to-date version log.After getting version log,
This version log is analyzed by project management server, analyzes the alteration obtaining project, and generates phase
The Xiang Mingda information answered.
Owing to version control server pays close attention to the alteration of item file in project, the version therefore generated
This daily record comprises detailed item file modification information;Compared with version log, project management server is then
The alteration that project of paying close attention to is overall, rather than the alteration of detailed programs file in project, therefore give birth to
The Xiang Mingda information become is more indirect compared to version log, and lays particular stress on project aspect.
Further, project management server is according to analyzing the Xiang Mingda information generated, to database service
In device, the history item information of storage is updated, thus ensures the project information of storage in database server
Real-time.
Owing to the item file in project there occurs change, in order to ensure the availability of first rear item file,
Project management server is according to Xiang Mingda information configuration code detection task, and by under this code detection task
Sending to code detection server, instruction code detection server carries out the code detection for change project.
In sum, the code detection system that the present embodiment provides, by project management server from version control
Control server obtains version log, and obtains Xiang Mingda information according to this version log analysis, thus enter
One step is code detection server configuration code Detection task according to this Xiang Mingda information, takes for code detection
Business device carries out code detection;Solve code in software development process to need to revise in a large number, human configuration
Code detection process efficiency relatively low and easy produce omit problem;Reach automatic by project management server
Project information is updated by the amendment situation according to code, and instruction code detection server is carried out further
Real-time code detection, it is to avoid produce while omitting, improves the efficiency of configuration code detection process.
Owing to the project information stored in database server is for project aspect, and send out in project entirety
Change more, such as, project store path changes, new projects or delete project time just needs enter
Row updates, and therefore, after project management server analysis obtains Xiang Mingda information, obtains database further
In server, the most whether the project information of storage, compare and there are differences, and the logarithm when there are differences
It is updated according to the project information in the server of storehouse.
Optionally, project management server 120, it is additionally operable to according to the project label in document change information, really
The fixed project that change occurs;Project according to there is change generates project modification information;Reading database services
The history item information of storage in device 140;Whether the project indicated by detection project modification information is included in is gone through
In history project information;If the project indicated by Xiang Mingda information is not included in history item information, then root
According to Xiang Mingda information, history item information is updated.
Project management server 120, when generating project modification information, obtains document change letter in version log
The project label updating file place project comprised in breath, so that it is determined that the project changed more of setting out, and root
Project modification information is generated according to the project that change occurs.
Such as, comprise the file modification information of item file 1 in version log, the file of item file 3 is deleted
Except the file of information, item file 4 increases the file increase information of information and item file 6, and project
The project label of file 1, item file 3 and item file 4 place project is project A, item file 6 institute
Project label in project is project B, and project management server i.e. determines that the project that change occurs is project A
And project B.
Project management server reads the history item information of storage from database server, and detects generation
Whether Xiang Mingda information there are differences, when both there are differences to history item with this history item information
Information is updated.As a kind of possible embodiment, the project that project management server detection generates becomes
Whether the project indicated by more information is included in history item information.When Xiang Mingda generation being detected is believed
When project indicated by breath is included in history item information, determines and update in project aspect, it is not necessary to
History item information is updated, and abandons the Xiang Mingda information of generation;When project generation being detected
When project indicated by modification information is not included in history item information, determines and there occurs more in project aspect
Newly, and according to Xiang Mingda information history item information is updated.
Such as, in the Xiang Mingda information that project management server generates, the change of project A and project B is comprised
More information, and from the history item information that database server reads, only comprise the project letter of project A
Breath.The project management server B that i.e. identifies project is new projects, and is updated this history item information.
In the present embodiment, project management server is according to the item target updating file place project in version log
Know, the item file changed is referred in concrete project, thus generate the item for project aspect
Mesh modification information, and further according to this Xiang Mingda information in database server storage history item
Information is updated, it is ensured that in database server, the project information of storage is ageing.
Owing to the item file of each version is stored in version control server, in order to make code detection take
Business device can accurately obtain the item file that change occurs, and line code of going forward side by side detects, and project management server is raw
The Xiang Mingda information become includes the item address that the project of change occurs.
Optionally, project management server 120, for according to the item address of project of change and pre-occurs
If detection target, configuration code Detection task, preset detection target and include the detection of code feasibility and code wind
At least one in lattice detection.
For convenience of follow-up code maintenance, the code detection task that project management server is arranged also can indicate that
Code detection server carries out code spice detection, and such as, the detection of this code spice is used for indicating code detection
Server inspection prints corresponding code for whether comprising daily record in catch statement.
Corresponding, code detection server 130, it is used for according to the item address comprised in code detection task,
The code that project is corresponding is obtained at version control server 110;The code got is carried out code detection.
Code detection server is according to the item address comprised in code detection task, from version control server
Place obtains the item file of whole project, and line code of going forward side by side detects, thus ensures that code detection server is each
The project information used is all up-to-date, and the code release of detection is all up-to-date i.e. every time.
Developer knows code detection result, optionally, code detection server 130 in time for convenience,
It is additionally operable to code detection result is stored in database server 140;
And/or;
Code detection server 130, is additionally operable to project management server 120 feedback code testing result.
After code detection server has detected change project, corresponding code detection result can be stored in data
Storehouse server, facilitates follow-up the transferring of developer to check, and carries out failture evacuation;Or, code detection takes
Testing result can also be sent to project management server by business device, and project management server receives detection knot
After Guo, notify that developer carries out fault location and failture evacuation in time.
In the present embodiment, after code detection server performs completion code detection, code detection result is stored in
Database server, or to project management server feedback code testing result so that developer can and
Time fault positioned and gets rid of, improve the efficiency of program development.
It should be noted that above-mentioned version control server 110, project management server 120, code detection
Server 130 and database server 140, may each be a station server, it is also possible to is by some clothes
The server cluster of business device composition or cloud computing center, this is not defined by the embodiment of the present invention.
In conjunction with the code detection system shown in Fig. 1, refer to Fig. 2, it illustrates one embodiment of the invention and carry
The flow chart of the code detection method of confession.The present embodiment is used for the project pipe in Fig. 1 with this code detection method
Illustrating as a example by reason server 120, the method includes:
Step 202, obtains version log from version control server, comprises file in project in version log
Document change information.
Step 204, is analyzed version log, generates project modification information, and Xiang Mingda information is used for referring to
Aspect purpose alteration.
Step 206, according to Xiang Mingda information configuration code detection task.
Step 208, issues code detection task to code detection server, and code detection server is used for basis
Code detection task carries out code detection.
In sum, the code detection method that the present embodiment provides, by project management server from version control
Control server obtains version log, and obtains Xiang Mingda information according to this version log analysis, thus enter
One step is code detection server configuration code Detection task according to this Xiang Mingda information, takes for code detection
Business device carries out code detection;Solve code in software development process to need to revise in a large number, human configuration
Code detection process efficiency relatively low and easy produce omit problem;Reach automatic by project management server
Project information is updated by the amendment situation according to code, and instruction code detection server is carried out further
Real-time code detection, it is to avoid produce while omitting, improves the efficiency of configuration code detection process.
Fig. 3 A shows the flow chart of the code detection method that another embodiment of the present invention provides.The present embodiment
Illustrate as a example by this code detection method project management server 120 in Fig. 1, the method bag
Include:
Step 301, obtains version log from version control server, comprises file in project in version log
Document change information.
Project management server presses predetermined period (such as every 12 or 24 hours) from version control server
Place obtains up-to-date version log.This version log includes that the file modification information of item file, file increase
Add the information such as information and file deletion information.
Step 302, is analyzed version log, generates project modification information, and Xiang Mingda information is used for referring to
Aspect purpose alteration.
Project management server, according to the alteration of item file in version log, is reclassified tool
In the project of body, and generate corresponding Xiang Mingda information.
As a kind of possible embodiment, as shown in Figure 3 B, this step may include steps of.
Step 302A, according to the project label in document change information, determines the project that change occurs.
Such as, comprise the file modification information of item file 1 in version log, the file of item file 3 is deleted
Except the file of information, item file 4 increases the file increase information of information and item file 6, and project
The project label of file 1, item file 3 and item file 4 place project is project A, item file 6 institute
Project label in project is project B, and project management server i.e. determines that the project that change occurs is project A
And project B.
Step 302B, the project according to there is change generates project modification information.
According to the project that change occurs determined, project management server generates project modification information further.
Compared to the version log in version control server, this Xiang Mingda information biases toward embodiment project aspect
Information, rather than the modification information of detailed programs file in project.
Step 303, is updated the history item information in database server according to Xiang Mingda information.
Project management server reads the history item information of storage from database server, and detects generation
Whether Xiang Mingda information there are differences, when both there are differences to history item with this history item information
Information is updated, thus ensures the real-time of the project information of storage in database server.
As a kind of possible embodiment, as shown in Figure 3 B, this step may further include following steps.
Step 303A, the history item information of storage in reading database server.
Project management server, after generating project modification information, stores in further reading database server
History item information.
Step 303B, whether detection project indicated by project modification information is included in history item information.
When the project indicated by Xiang Mingda information generation being detected is included in history item information, really
The project aspect of being scheduled on updates, it is not necessary to be updated history item information, and abandons the project of generation
Modification information;When detecting that the project indicated by the Xiang Mingda information of generation is not included in history item information
Time middle, determine and there occurs renewal in project aspect, and according to Xiang Mingda information, history item information is carried out
Update (i.e. performing step 303C).
Step 303C, if the project indicated by Xiang Mingda information is not included in history item information, then root
According to Xiang Mingda information, history item information is updated.
When detect there are differences between Xiang Mingda information and history item information time, project management server
I.e. according to this Xiang Mingda information, history item information is updated.
Step 304, according to Xiang Mingda information configuration code detection task.
As a kind of possible embodiment, project management server is according to the project ground of the project that change occurs
Location and default detection target, configuration code Detection task, wherein, preset detection target and include that code is feasible
Property detection and code spice detect at least one.
For convenience of follow-up code maintenance, the code detection task that project management server is arranged also can indicate that
Code detection server carries out code spice detection.Such as, the detection of this code spice is used for indicating code detection
Server inspection prints corresponding code for whether comprising daily record in catch statement.
Step 305, issues code detection task to code detection server, and code detection server is used for basis
Code detection task carries out code detection.
Corresponding, code detection server is according to the item address comprised in code detection task, from version control
Obtaining the item file of whole project at control server, line code of going forward side by side detects, thus ensures that code detection takes
The project information that business device uses every time is all up-to-date, and the code release of detection is all up-to-date i.e. every time.
Step 306, receives the testing result of code detection server feedback.
Developer knows code detection result in time for convenience, and code detection server completion code detects
After task, testing result is fed back to project management server, facilitate developer to carry out fault location in time
And failture evacuation.
In sum, the code detection method that the present embodiment provides, by project management server from version control
Control server obtains version log, and obtains Xiang Mingda information according to this version log analysis, thus enter
One step is code detection server configuration code Detection task according to this Xiang Mingda information, takes for code detection
Business device carries out code detection;Solve code in software development process to need to revise in a large number, human configuration
Code detection process efficiency relatively low and easy produce omit problem;Reach automatic by project management server
Project information is updated by the amendment situation according to code, and instruction code detection server is carried out further
Real-time code detection, it is to avoid produce while omitting, improves the efficiency of configuration code detection process.
In the present embodiment, project management server is according to the item target updating file place project in version log
Know, the item file changed is referred in concrete project, thus generate the item for project aspect
Mesh modification information, and further according to this Xiang Mingda information in database server storage history item
Information is updated, it is ensured that in database server, the project information of storage is ageing.
In the present embodiment, after code detection server performs completion code detection, code detection result is stored in
Database server, or to project management server feedback code testing result so that developer can and
Time fault positioned and gets rid of, improve the efficiency of program development.
Refer to Fig. 4, it illustrates the structure square frame of the code detecting apparatus that one embodiment of the invention provides
Figure.This code detecting apparatus can pass through software, hardware or both be implemented in combination with becoming project in Fig. 1
The all or part of management server 120.This code detecting apparatus, including:
Acquisition module 410, for obtaining version log from version control server, comprises in described version log
The document change information of file in project;
Generation module 420, for being analyzed described version log, generates project modification information, described item
Mesh modification information is for the alteration of directory entry;
Configuration module 430, for according to described Xiang Mingda information configuration code detection task;
Issuing module 440, for issuing described code detection task to code detection server, described code is examined
Survey server for carrying out code detection according to described code detection task.
In sum, the code detecting apparatus that the present embodiment provides, by project management server from version control
Control server obtains version log, and obtains Xiang Mingda information according to this version log analysis, thus enter
One step is code detection server configuration code Detection task according to this Xiang Mingda information, takes for code detection
Business device carries out code detection;Solve code in software development process to need to revise in a large number, human configuration
Code detection process efficiency relatively low and easy produce omit problem;Reach automatic by project management server
Project information is updated by the amendment situation according to code, and instruction code detection server is carried out further
Real-time code detection, it is to avoid produce while omitting, improves the efficiency of configuration code detection process.
Refer to Fig. 5, it illustrates the structure square frame of the code detecting apparatus that another embodiment of the present invention provides
Figure.This code detecting apparatus can pass through software, hardware or both be implemented in combination with becoming project in Fig. 1
The all or part of management server 120.This code detecting apparatus, including:
Acquisition module 510, for obtaining version log from version control server, comprises in described version log
The document change information of file in project;
Generation module 520, for being analyzed described version log, generates project modification information, described item
Mesh modification information is for the alteration of directory entry;
Configuration module 530, for according to described Xiang Mingda information configuration code detection task;
Issuing module 540, for issuing described code detection task to code detection server, described code is examined
Survey server for carrying out code detection according to described code detection task.
Optionally, described device, also include:
More new module 550, is used for according to described Xiang Mingda information the history entries in described database server
Mesh information is updated.
Optionally, described document change information comprises the project label updating file place project,
Described generation module 520, including:
Determine unit 521, for according to the described project label in described document change information, determine and become
Project more;
Signal generating unit 522, for generating described Xiang Mingda information according to the described project that change occurs;
Described more new module 550, including:
Read unit 551, for reading the described history item information of storage in described database server;
Detector unit 552, for detect the project indicated by described Xiang Mingda information whether be included in described in go through
In history project information;
Updating block 553, if being not included in described history entries for the project indicated by described Xiang Mingda information
In mesh information, then according to described Xiang Mingda information, described history item information is updated.
Optionally, configure module 530, be used for:
Item address according to the described project that change occurs and default detection target, configure the inspection of described code
Survey task, described default detection target includes at least one in the detection of code feasibility and code spice detection.
In sum, the code detecting apparatus that the present embodiment provides, by project management server from version control
Control server obtains version log, and obtains Xiang Mingda information according to this version log analysis, thus enter
One step is code detection server configuration code Detection task according to this Xiang Mingda information, takes for code detection
Business device carries out code detection;Solve code in software development process to need to revise in a large number, human configuration
Code detection process efficiency relatively low and easy produce omit problem;Reach automatic by project management server
Project information is updated by the amendment situation according to code, and instruction code detection server is carried out further
Real-time code detection, it is to avoid produce while omitting, improves the efficiency of configuration code detection process.
In the present embodiment, project management server is according to the item target updating file place project in version log
Know, the item file changed is referred in concrete project, thus generate the item for project aspect
Mesh modification information, and further according to this Xiang Mingda information in database server storage history item
Information is updated, it is ensured that in database server, the project information of storage is ageing.
In the present embodiment, after code detection server performs completion code detection, code detection result is stored in
Database server, or to project management server feedback code testing result so that developer can and
Time fault positioned and gets rid of, improve the efficiency of program development.
It should be understood that above-described embodiment provide code detecting apparatus when carrying out code detection, only with
The division of above-mentioned each functional module is illustrated, in actual application, and can be as desired by above-mentioned merit
Distribution can be completed by different functional modules, will the internal structure of project management server be divided into different
Functional module, to complete all or part of function described above.It addition, the generation that above-described embodiment provides
Code detection device belongs to same design with code detection method embodiment, and it implements process and refers to method in fact
Execute example, repeat no more here.
Fig. 6 shows the block diagram of the server that one embodiment of the invention provides.This server 600 can be
Project management server 120 shown in Fig. 1.Specifically:
Server 600 includes CPU (CPU) 601, includes random access memory (RAM)
602 and the system storage 604 of read-only storage (ROM) 603, and connection system memory 604 He
The system bus 605 of CPU 601.Server 600 also includes helping transmission letter between each device
The basic input/output (I/O system) 606 of breath, and be used for storing operating system 613, application program
614 and the mass-memory unit 607 of other program modules 615.
Basic input/output 606 includes the display 608 for showing information and inputs for user
The input equipment 609 of such as mouse, keyboard etc of information.Wherein display 608 and input equipment 609 are all
It is connected to CPU 601 by being connected to the IOC 610 of system bus 605.Substantially
Input/output 606 can also include IOC 610 for receive and process from keyboard,
The input of other equipment multiple such as mouse or electronic touch pen.Similarly, IOC 610 is also
Provide output to display screen, printer or other kinds of output equipment.
Mass-memory unit 607 (does not shows by being connected to the bulk memory controller of system bus 605
Go out) it is connected to CPU 601.Mass-memory unit 607 and the computer-readable being associated thereof are situated between
Matter provides non-volatile memories for server 600.It is to say, mass-memory unit 607 can include
The computer-readable medium (not shown) of such as hard disk or CD-ROM drive etc.
Without loss of generality, computer-readable medium can include computer-readable storage medium and communication media.Calculate
Machine storage medium include for store such as computer-readable instruction, data structure, program module or other
Volatibility that any method of the information such as data or technology realize and Jie non-volatile, removable and irremovable
Matter.Computer-readable storage medium includes RAM, ROM, EPROM, EEPROM, flash memory or other solid-states
Store its technology, CD-ROM, DVD or other optical storage, cassette, tape, disk storage or its
His magnetic storage apparatus.Certainly, skilled person will appreciate that computer-readable storage medium is not limited to above-mentioned several
Kind.Above-mentioned system storage 604 and mass-memory unit 607 may be collectively referred to as memory.
According to various embodiments of the present invention, server 600 can also be connected by networks such as such as internets
Remote computer on network runs.Namely server 600 can be by being connected on system bus 605
NIU 611 be connected to network 612, in other words, it is possible to use NIU 611
It is connected to other kinds of network or remote computer system (not shown).
Above-mentioned memory also includes one or more than one program, one or the storage of more than one program
In memory, it is configured to be performed by CPU.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be passed through
Hardware completes, it is also possible to instructing relevant hardware by program and complete, described program can be stored in
In a kind of computer-readable recording medium, storage medium mentioned above can be read-only storage, disk or
CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the present invention's
Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's
Within protection domain.
Claims (13)
1. a code detection system, it is characterised in that described system includes: version control server, item
Mesh management server, code detection server and database server;
Described project management server, for obtaining version log, described version from described version control server
This daily record comprises the document change information of file in project;Described version log is analyzed, generating item
Mesh modification information, described Xiang Mingda information is for the alteration of directory entry;
Described project management server, is additionally operable to according to described Xiang Mingda information described database server
In history item information be updated;According to described Xiang Mingda information configuration code detection task, to institute
State code detection server and issue described code detection task;
Described code detection server, for carrying out code detection according to described code detection task.
System the most according to claim 1, it is characterised in that comprise more in described document change information
The project label of new file place project;
Described project management server, is additionally operable to according to the described project label in described document change information,
Determine the project that change occurs;
Described Xiang Mingda information is generated according to the described project that change occurs;
Read the described history item information of storage in described database server;
Detect whether the project indicated by described Xiang Mingda information is included in described history item information;
If the project indicated by described Xiang Mingda information is not included in described history item information, then basis
Described history item information is updated by described Xiang Mingda information.
System the most according to claim 1 and 2, it is characterised in that described Xiang Mingda information includes
There is the item address of the project of change,
Described project management server, is used for the item address according to the described project that change occurs and presets
Detection target, configure described code detection task, described default detection target include code feasibility detection and
At least one in code spice detection.
System the most according to claim 1 and 2, it is characterised in that in described version control server
Storage has the code that each version entries is corresponding, and described code detection task includes code place to be detected
The item address of project;
Described code detection server, is used for according to the described item address comprised in described code detection task,
The code that described project is corresponding is obtained at described version control server;The described code got is carried out
Code detection.
5. according to the arbitrary described system of Claims 1-4, it is characterised in that
Described code detection server, is additionally operable to code detection result is stored in described database server;
And/or;
Described code detection server, is additionally operable to described project management server feedback code testing result.
6. a code detection method, it is characterised in that described method includes:
Obtain version log from version control server, described version log comprises the file of file in project
Modification information;
Being analyzed described version log, generate project modification information, described Xiang Mingda information is used for referring to
Aspect purpose alteration;
According to described Xiang Mingda information configuration code detection task;
Issuing described code detection task to code detection server, described code detection server is used for basis
Described code detection task carries out code detection.
Method the most according to claim 6, it is characterised in that described described version log is carried out point
Analysis, after generating project modification information, also includes:
According to described Xiang Mingda information, the history item information in described database server is updated.
Method the most according to claim 7, it is characterised in that comprise more in described document change information
The project label of new file place project,
Described described version log is analyzed, generates project modification information, including:
According to the described project label in described document change information, determine the project that change occurs;
Described Xiang Mingda information is generated according to the described project that change occurs;
Described according to described Xiang Mingda information, the history item information in described database server is carried out more
Newly, including:
Read the described history item information of storage in described database server;
Detect whether the project indicated by described Xiang Mingda information is included in described history item information;
If the project indicated by described Xiang Mingda information is not included in described history item information, then basis
Described history item information is updated by described Xiang Mingda information.
Method the most according to claim 8, it is characterised in that described according to described Xiang Mingda information
Configuration code Detection task, including:
Item address according to the described project that change occurs and default detection target, configure the inspection of described code
Survey task, described default detection target includes at least one in the detection of code feasibility and code spice detection.
10. a code detecting apparatus, it is characterised in that described device includes:
Acquisition module, for obtaining version log from version control server, comprises item in described version log
The document change information of file in mesh;
Generation module, for being analyzed described version log, generates project modification information, described project
Modification information is for the alteration of directory entry;
Configuration module, for according to described Xiang Mingda information configuration code detection task;
Issue module, for issuing described code detection task, described code detection to code detection server
Server is for carrying out code detection according to described code detection task.
11. devices according to claim 10, it is characterised in that described device, also include:
More new module, is used for according to described Xiang Mingda information the history item in described database server
Information is updated.
12. devices according to claim 11, it is characterised in that comprise in described document change information
Update the project label of file place project,
Described generation module, including:
Determine unit, for according to the described project label in described document change information, determine and change
Project;
Signal generating unit, for generating described Xiang Mingda information according to the described project that change occurs;
Described more new module, including:
Read unit, for reading the described history item information of storage in described database server;
Detector unit, for detecting whether the project indicated by described Xiang Mingda information is included in described history
In project information;
Updating block, if being not included in described history item for the project indicated by described Xiang Mingda information
In information, then according to described Xiang Mingda information, described history item information is updated.
13. devices according to claim 12, it is characterised in that described configuration module, are used for:
Item address according to the described project that change occurs and default detection target, configure the inspection of described code
Survey task, described default detection target includes at least one in the detection of code feasibility and code spice detection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610196893.0A CN105893259B (en) | 2016-03-31 | 2016-03-31 | Code detection system, method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610196893.0A CN105893259B (en) | 2016-03-31 | 2016-03-31 | Code detection system, method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105893259A true CN105893259A (en) | 2016-08-24 |
CN105893259B CN105893259B (en) | 2019-04-09 |
Family
ID=57011764
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610196893.0A Active CN105893259B (en) | 2016-03-31 | 2016-03-31 | Code detection system, method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105893259B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109359028A (en) * | 2018-08-22 | 2019-02-19 | 平安科技(深圳)有限公司 | Code quality monitoring method, device, computer equipment and storage medium |
CN110134653A (en) * | 2019-05-17 | 2019-08-16 | 杭州安恒信息技术股份有限公司 | It is a kind of to utilize log auxiliary data base auditing method and system |
CN110262968A (en) * | 2019-06-10 | 2019-09-20 | 天翼电子商务有限公司 | Promote method, system, medium and the electronic equipment of application failure location efficiency |
CN111045723A (en) * | 2019-12-11 | 2020-04-21 | 腾讯科技(深圳)有限公司 | Method and device for notifying code change between associated systems |
CN112199276A (en) * | 2020-09-24 | 2021-01-08 | 建信金融科技有限责任公司 | Alteration detection method and device for microservice architecture, server and storage medium |
CN112231327A (en) * | 2020-10-12 | 2021-01-15 | 中国民航信息网络股份有限公司 | Flight information updating method, device, server and storage medium |
CN112860564A (en) * | 2021-02-24 | 2021-05-28 | 深圳海付移通科技有限公司 | Code detection method, server, user terminal, computer device and storage medium |
CN113050926A (en) * | 2021-03-24 | 2021-06-29 | 中国工商银行股份有限公司 | Method, device and equipment for confirming synchronous change of codes |
CN113342779A (en) * | 2021-06-23 | 2021-09-03 | 深圳兆日科技股份有限公司 | Project updating method and device and computer readable storage medium |
CN113535533A (en) * | 2020-04-15 | 2021-10-22 | 百度在线网络技术(北京)有限公司 | Method, apparatus, device and storage medium for testing code |
CN115629746A (en) * | 2022-12-22 | 2023-01-20 | 西安葡萄城软件有限公司 | Method and system for multi-person collaborative development of low-code platform |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100058294A1 (en) * | 2008-08-27 | 2010-03-04 | International Business Machines Corporation | Guarding code check-in with test case execution results |
CN103336688A (en) * | 2013-06-20 | 2013-10-02 | 中标软件有限公司 | Software integrating method and system oriented to cloud computing software research and development process |
CN103353846A (en) * | 2013-06-28 | 2013-10-16 | 四川农业大学 | Project automatic-deployment plug-in |
CN104298587A (en) * | 2013-07-15 | 2015-01-21 | 腾讯科技(深圳)有限公司 | Code coverage test method, device and system |
US9081595B1 (en) * | 2011-12-06 | 2015-07-14 | The Mathworks, Inc. | Displaying violated coding rules in source code |
CN104780076A (en) * | 2015-03-19 | 2015-07-15 | 杭州华三通信技术有限公司 | A code inspection method and apparatus |
CN105373384A (en) * | 2015-11-13 | 2016-03-02 | 大唐终端技术有限公司 | Software development method and apparatus |
-
2016
- 2016-03-31 CN CN201610196893.0A patent/CN105893259B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100058294A1 (en) * | 2008-08-27 | 2010-03-04 | International Business Machines Corporation | Guarding code check-in with test case execution results |
US9081595B1 (en) * | 2011-12-06 | 2015-07-14 | The Mathworks, Inc. | Displaying violated coding rules in source code |
CN103336688A (en) * | 2013-06-20 | 2013-10-02 | 中标软件有限公司 | Software integrating method and system oriented to cloud computing software research and development process |
CN103353846A (en) * | 2013-06-28 | 2013-10-16 | 四川农业大学 | Project automatic-deployment plug-in |
CN104298587A (en) * | 2013-07-15 | 2015-01-21 | 腾讯科技(深圳)有限公司 | Code coverage test method, device and system |
CN104780076A (en) * | 2015-03-19 | 2015-07-15 | 杭州华三通信技术有限公司 | A code inspection method and apparatus |
CN105373384A (en) * | 2015-11-13 | 2016-03-02 | 大唐终端技术有限公司 | Software development method and apparatus |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109359028B (en) * | 2018-08-22 | 2024-05-03 | 平安科技(深圳)有限公司 | Code quality monitoring method, device, computer equipment and storage medium |
CN109359028A (en) * | 2018-08-22 | 2019-02-19 | 平安科技(深圳)有限公司 | Code quality monitoring method, device, computer equipment and storage medium |
CN110134653B (en) * | 2019-05-17 | 2021-09-07 | 杭州安恒信息技术股份有限公司 | Method and system for assisting database auditing by using logs |
CN110134653A (en) * | 2019-05-17 | 2019-08-16 | 杭州安恒信息技术股份有限公司 | It is a kind of to utilize log auxiliary data base auditing method and system |
CN110262968A (en) * | 2019-06-10 | 2019-09-20 | 天翼电子商务有限公司 | Promote method, system, medium and the electronic equipment of application failure location efficiency |
CN111045723A (en) * | 2019-12-11 | 2020-04-21 | 腾讯科技(深圳)有限公司 | Method and device for notifying code change between associated systems |
CN111045723B (en) * | 2019-12-11 | 2024-01-26 | 腾讯科技(深圳)有限公司 | Method and device for notifying code change between associated systems |
CN113535533B (en) * | 2020-04-15 | 2024-04-05 | 百度在线网络技术(北京)有限公司 | Method, apparatus, device and storage medium for testing code |
CN113535533A (en) * | 2020-04-15 | 2021-10-22 | 百度在线网络技术(北京)有限公司 | Method, apparatus, device and storage medium for testing code |
CN112199276B (en) * | 2020-09-24 | 2023-05-30 | 建信金融科技有限责任公司 | Method, device, server and storage medium for detecting change of micro-service architecture |
CN112199276A (en) * | 2020-09-24 | 2021-01-08 | 建信金融科技有限责任公司 | Alteration detection method and device for microservice architecture, server and storage medium |
CN112231327B (en) * | 2020-10-12 | 2024-01-23 | 中国民航信息网络股份有限公司 | Flight information updating method, device, server and storage medium |
CN112231327A (en) * | 2020-10-12 | 2021-01-15 | 中国民航信息网络股份有限公司 | Flight information updating method, device, server and storage medium |
CN112860564A (en) * | 2021-02-24 | 2021-05-28 | 深圳海付移通科技有限公司 | Code detection method, server, user terminal, computer device and storage medium |
CN113050926A (en) * | 2021-03-24 | 2021-06-29 | 中国工商银行股份有限公司 | Method, device and equipment for confirming synchronous change of codes |
CN113050926B (en) * | 2021-03-24 | 2024-03-05 | 中国工商银行股份有限公司 | Method, device and equipment for confirming code synchronization change |
CN113342779A (en) * | 2021-06-23 | 2021-09-03 | 深圳兆日科技股份有限公司 | Project updating method and device and computer readable storage medium |
CN115629746A (en) * | 2022-12-22 | 2023-01-20 | 西安葡萄城软件有限公司 | Method and system for multi-person collaborative development of low-code platform |
Also Published As
Publication number | Publication date |
---|---|
CN105893259B (en) | 2019-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105893259A (en) | Code detection system, method and device | |
KR102317535B1 (en) | Methods and systems for implementing data tracking with software development kits | |
US9836710B2 (en) | Resource planning for data protection validation | |
US20180365309A1 (en) | Automatic triage model execution in machine data driven monitoring automation apparatus | |
US9305176B2 (en) | Database generation from a spreadsheet | |
EP2778929B1 (en) | Test script generation system | |
CN108345482A (en) | The self-defined edit methods of dynamic page, device, electronic equipment and storage medium | |
CN111080170B (en) | Workflow modeling method and device, electronic equipment and storage medium | |
US11093242B2 (en) | Automatically mapping data while designing process flows | |
EP2192536A2 (en) | Integrated design application | |
EP3462315A2 (en) | Systems and methods for service mapping | |
US20160306690A1 (en) | Integrated test design, automation, and analysis | |
US11636029B2 (en) | Testing as a service | |
US20180349179A1 (en) | Centralized flexible deployment system | |
US8914798B2 (en) | Production control for service level agreements | |
WO2020220891A1 (en) | Method and apparatus for generating configuration file of site in internet of things system | |
CN110865806B (en) | Code processing method, device, server and storage medium | |
US20170193409A1 (en) | Business resource modeling | |
CN111143724A (en) | Data processing method, device, equipment and medium | |
CN116664060A (en) | Method, system and device for generating expense reimbursement basic data | |
CN116578497A (en) | Automatic interface testing method, system, computer equipment and storage medium | |
TW201618026A (en) | Network service pre-construction manifest management system | |
Kleehaus et al. | Discovery of Microservice-based IT Landscapes at Runtime: Algorithms and Visualizations. | |
JP2007524886A (en) | System and method for managing a distributed design network | |
US9275358B1 (en) | System, method, and computer program for automatically creating and submitting defect information associated with defects identified during a software development lifecycle to a defect tracking system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |