Home | History | Annotate | Download | only in code_coverage

Lines Matching full:coverage

7 """Module to setup and generate code coverage data
9 This module first sets up the environment for code coverage, instruments the
10 binaries, runs the tests and collects the code coverage data.
14 coverage.py --upload=<upload_location>
32 # The list of binaries that will be instrumented for code coverage
71 class Coverage(object):
72 """Class to set up and generate code coverage.
75 code coverage.
87 """Init method for the Coverage class.
93 archive: Archive location for the intermediate .coverage results.
105 coverage.
108 and sets up the code coverage counters.
135 instrument_command = '%s /COVERAGE ' % (os.path.join(self.tools_path,
148 # We are now ready to run tests and measure code coverage.
174 logging.info('Archived the .coverage files')
183 """Run tests and collect the .coverage file
190 Path of the intermediate .coverage file on success.
193 # Generate the intermediate file name for the coverage results
202 coverage_file = os.path.join(self._dir, '%s_win32_%s.coverage' %
204 logging.info('.coverage file for test %s: %s' % (test_name, coverage_file))
207 counters_command = ('%s -start:coverage -output:%s' %
228 # Return the intermediate .coverage file
234 This method uploads the coverage data to a dashboard where it will be
235 processed. On Windows, this method will first convert the .coverage file to
239 list_coverage: The list of coverage data files to consoliate and upload.
240 upload_path: Destination where the coverage data will be processed.
263 # Convert the intermediate .coverage file to lcov format
293 # Path where the .coverage to .lcov converter tools are stored.
298 help='Location of the coverage tools (windows only)')
311 # Root of the source tree. Needed for converting the generated .coverage file
322 help='Archive location of the intermediate .coverage data')
332 # Initialize coverage
333 cov = Coverage(options.revision,
342 coverage = cov.RunTest(options.src_root, test)
343 if coverage == None: # Indicate failure to the buildbots.
346 list_coverage.append(coverage)