Sha256: 8d858972534d3ec1b794cea17aea1ca0e4e86ff3f69505f422e7d64dff490214
Contents?: true
Size: 926 Bytes
Versions: 4
Compression:
Stored size: 926 Bytes
Contents
require 'fileutils' require 'set' include Helpers::ModuleHelper MANIFEST_FILENAME = 'coverage.manifest'.freeze def init generate_manifest end def namespace_objects run_verifier(Registry.all(:class, :module)) end def output_path options.serializer.options[:basepath] || Dir.pwd end def generate_manifest puts "Generating #{MANIFEST_FILENAME}..." methods = Set.new namespace_objects.each do |object| run_verifier(object.meths).each { |method| # TODO(thomthom): Currently the manifest doesn't distinguish between # class and instance methods. This should be addressed, but we need to # update TestUp to handle this first. methods << "#{method.namespace}.#{method.name}" } end manifest = methods.sort.join("\n") manifest_path = File.join(output_path, MANIFEST_FILENAME) puts manifest_path File.write(manifest_path, manifest) end
Version data entries
4 entries across 4 versions & 1 rubygems