auto_test 0.0.9.2 → 0.0.9.3
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 +4 -4
- metadata +1 -1
data/lib/auto_test/version.rb
CHANGED
data/lib/tasks/auto_test.rb
CHANGED
@@ -4,7 +4,7 @@ namespace :auto_test do
|
|
4
4
|
task :test do
|
5
5
|
puts "Running auto_test..."
|
6
6
|
sh "rails server -e test -p 3002 -d"
|
7
|
-
path =
|
7
|
+
path = %x(gem which auto_test)
|
8
8
|
path = path[0..path.size-13]
|
9
9
|
sh "rspec '#{path}/../spec/requests/auto_spec.rb' -o '#{path}/../../log/rspec.txt'"
|
10
10
|
Rake::Task[:error_calc].invoke
|
@@ -13,7 +13,7 @@ namespace :auto_test do
|
|
13
13
|
|
14
14
|
desc "calculating the errors"
|
15
15
|
task :error_calc do
|
16
|
-
path =
|
16
|
+
path = %x(gem which auto_test)
|
17
17
|
path = path[0..path.size-13]
|
18
18
|
sh "rm '#{path}/../log/rspec.txt'"
|
19
19
|
err = File.read("#{path}/../log/errors.log")
|
@@ -28,7 +28,7 @@ namespace :auto_test do
|
|
28
28
|
|
29
29
|
desc "Reducing the error path"
|
30
30
|
task :reduce_errors do
|
31
|
-
path =
|
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
34
|
sh "rspec #{path}/spec/requests/error_reduction_spec.rb -o '#{path}/../log/reduce_err.txt'"
|
@@ -38,7 +38,7 @@ namespace :auto_test do
|
|
38
38
|
|
39
39
|
desc "starting the simulation"
|
40
40
|
task :start_action_path do
|
41
|
-
path =
|
41
|
+
path = %x(gem which auto_test)
|
42
42
|
path = path[0..path.size-13]
|
43
43
|
# paths = File.new("lib/auto_test/log/new_path.log")
|
44
44
|
# n = 0
|