735 self._warn("No data was collected.", slug="no-data-collected") |
736 self._warn("No data was collected.", slug="no-data-collected") |
736 |
737 |
737 # Touch all the files that could have executed, so that we can |
738 # Touch all the files that could have executed, so that we can |
738 # mark completely unexecuted files as 0% covered. |
739 # mark completely unexecuted files as 0% covered. |
739 if self._data is not None: |
740 if self._data is not None: |
|
741 file_paths = collections.defaultdict(list) |
740 for file_path, plugin_name in self._inorout.find_possibly_unexecuted_files(): |
742 for file_path, plugin_name in self._inorout.find_possibly_unexecuted_files(): |
741 file_path = self._file_mapper(file_path) |
743 file_path = self._file_mapper(file_path) |
742 self._data.touch_file(file_path, plugin_name) |
744 file_paths[plugin_name].append(file_path) |
|
745 for plugin_name, paths in file_paths.items(): |
|
746 self._data.touch_files(paths, plugin_name) |
743 |
747 |
744 if self.config.note: |
748 if self.config.note: |
745 self._warn("The '[run] note' setting is no longer supported.") |
749 self._warn("The '[run] note' setting is no longer supported.") |
746 |
750 |
747 # Backward compatibility with version 1. |
751 # Backward compatibility with version 1. |