Skip to content

Commit

Permalink
could not use report.csv, as it has local path
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Sep 22, 2016
1 parent e638c9d commit d7b23a9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 785 deletions.
8 changes: 1 addition & 7 deletions rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

RSpec::Core::RakeTask.new(:spec) do |t|
Rake::Task['bootstrap'].invoke
Rake::Task['spec:db'].invoke
t.pattern = Dir.glob('test/test_*.rb')
t.rspec_opts = '--format documentation'
# t.rspec_opts << ' more options'
Expand All @@ -15,13 +16,6 @@
# t.rspec_opts << ' more options'
end

RSpec::Core::RakeTask.new(:'spec:blast') do |t|
Rake::Task['bootstrap'].invoke
t.pattern = Dir.glob('test/test_blast.rb')
t.rspec_opts = '--format documentation'
# t.rspec_opts << ' more options'
end

task default: :bootstrap

desc 'Download all external databases'
Expand Down
7 changes: 5 additions & 2 deletions test/blast_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
require 'fileutils'
#
#
require 'byebug'
module BlastHelpers
#
# test every file in the results directory
# against the predicted files
def test_results(type, output_dir)
files = []
Dir.foreach(test_res_dir(type)) do |item|
test_file = test_res_dir(type) + File::Separator + item
Dir.glob(test_res_dir(type) + "/**/*") do |test_file|
#test_file = test_res_dir(type) + File::Separator + item
item = test_file.gsub(test_res_dir(type), '')
item = item.gsub( /^\//, '')
next unless File.file?(test_file)
file2 = output_dir + File::Separator + item
files << { output: file2, expected: test_file }
Expand Down
8 changes: 0 additions & 8 deletions test/blastn/result/report.csv

This file was deleted.

Loading

0 comments on commit d7b23a9

Please sign in to comment.