auto_test 0.0.9.3.1 → 0.0.9.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/auto_test/version.rb +1 -1
- data/lib/tasks/auto_test.rb +5 -5
- metadata +1 -1
data/lib/auto_test/version.rb
CHANGED
data/lib/tasks/auto_test.rb
CHANGED
@@ -15,8 +15,8 @@ namespace :auto_test do
|
|
15
15
|
task :error_calc do
|
16
16
|
path = %x(gem which auto_test)
|
17
17
|
path = path[0..path.size-13]
|
18
|
-
sh "rm '#{path}
|
19
|
-
err = File.read("#{path}
|
18
|
+
sh "rm '#{path}/../../log/rspec.txt'"
|
19
|
+
err = File.read("#{path}/../../log/errors.log")
|
20
20
|
if err.to_i > 0 then
|
21
21
|
puts "Do you want to see the error-path in firefox? Type yes/no:"
|
22
22
|
a = STDIN.gets.chomp
|
@@ -31,8 +31,8 @@ namespace :auto_test do
|
|
31
31
|
path = %x(gem which auto_test)
|
32
32
|
path = path[0..path.size-13]
|
33
33
|
puts "Reducing the error path, this could take a while..."
|
34
|
-
sh "rspec #{path}
|
35
|
-
sh "rm '#{path}
|
34
|
+
sh "rspec #{path}/../spec/requests/error_reduction_spec.rb -o '#{path}/../../log/reduce_err.txt'"
|
35
|
+
sh "rm '#{path}/../../log/reduce_err.txt'"
|
36
36
|
Rake::Task["auto_test:start_action_path"].invoke
|
37
37
|
end
|
38
38
|
|
@@ -48,7 +48,7 @@ namespace :auto_test do
|
|
48
48
|
# puts "Error path reduced.There are #{n} paths to be visited."
|
49
49
|
puts "Press Enter to see the path in Firefox! "
|
50
50
|
STDIN.gets
|
51
|
-
ruby "#{path}
|
51
|
+
ruby "#{path}/../simulation.rb"
|
52
52
|
end
|
53
53
|
|
54
54
|
|