Detection method, device and apparatus for realizing incremental code coverage rate based on lcov
A code coverage and detection method technology, which is applied in the field of software development code quality monitoring, can solve the problems that the coverage report cannot be automatically generated, and the development and testing process cannot be combined, so as to achieve the effect of ensuring project quality and accurate detection results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] A detection method based on lcov to realize incremental code coverage provided by the present invention includes the following steps (please refer to the specific execution flow figure 1 ):
[0044] S1. Configure compilation options through the Xcode tool, enter the compilation process, and generate an application installation package; wherein, push the generated application installation package to the front end for installation and operation;
[0045] S2. Pack and compress the ".gcno" file generated during the compilation process and upload it to the server; the generation principle of the ".gcno" file is: during the compilation process, the script will call Xcode command line tools to further generate " ipa" file, after the "ipa" file is generated, the corresponding ".gcno" file will be automatically generated. Currently, input the file compression command (the curl command is executed in this embodiment) at the compilation backend, and convert all " .gcno" file is c...
Embodiment 2
[0079] The present invention discloses a detection device based on lcov to realize incremental code coverage. For the system structure diagram of the device, please refer to figure 2 ,Depend on figure 2 As shown, the detection device includes the following modules:
[0080] The compilation module L1 is used to configure the compilation options through the Xcode tool, enter the compilation process, and generate the application installation package; wherein, the generated application installation package is pushed to the front end for installation and operation;
[0081] The file upload module L2 is used to pack and compress the ".gcno" file generated during the compilation process and upload it to the server; at the same time, based on the compilation module, during the running of the application, the coverage distribution function is called to generate the corresponding ". gcda" file, after running, obtain the final generated ".gcda" file from the sandbox of the application...
Embodiment 3
[0087] A device disclosed in this embodiment includes a detection device for implementing incremental code coverage using Embodiment 2. For the structure diagram of the device, please refer to image 3 ,Depend on image 3 As shown, the device includes a memory and a processor, and the memory is used to store data processed by the compilation module, the file upload module, the data integration module, the incremental ".info" file generation module and the coverage report generation module. The processor is used to obtain corresponding data from the memory, and further perform incremental code coverage detection.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com