auto_test 0.0.8.6 → 0.0.8.7
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/auto_test.rb +4 -0
- data/lib/tasks/auto_test.rb +3 -2
- data/lib/test.rb +3 -3
- metadata +1 -1
data/lib/auto_test/version.rb
CHANGED
data/lib/auto_test.rb
CHANGED
data/lib/tasks/auto_test.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
|
1
|
+
require 'auto_test'
|
2
2
|
namespace :auto_test do
|
3
3
|
desc "starting the test"
|
4
4
|
task :test do
|
5
5
|
puts "Running auto_test..."
|
6
6
|
sh "rails server -e test -p 3002 -d"
|
7
|
-
|
7
|
+
AutoTest.start_rspec
|
8
|
+
# sh "rspec lib/spec/requests/auto_spec.rb -o 'log/rspec.txt'"
|
8
9
|
sh "rm 'log/rspec.txt'"
|
9
10
|
Rake::Task[:error_calc].invoke
|
10
11
|
Rake::Task[:stop].invoke
|
data/lib/test.rb
CHANGED
@@ -294,7 +294,7 @@ module AutoTest
|
|
294
294
|
|
295
295
|
|
296
296
|
def write_user_input_to_file
|
297
|
-
f = File.new("
|
297
|
+
f = File.new("log/user_input.log", "w")
|
298
298
|
if Test.no_auth then
|
299
299
|
f.puts("get_number_of_test_runs:#{get_number_of_test_runs}
|
300
300
|
get_number_of_sessions:#{get_number_of_sessions}")
|
@@ -361,13 +361,13 @@ module AutoTest
|
|
361
361
|
end
|
362
362
|
Test.check_invariants
|
363
363
|
if !Test.stop? then Test.users_logged_in = Test.users_logged_in + 1 end
|
364
|
-
f = File.new("
|
364
|
+
f = File.new("log/paths.log", "w")
|
365
365
|
f.puts(Test.action_path)
|
366
366
|
f.close
|
367
367
|
puts
|
368
368
|
Error.print_errors
|
369
369
|
if Error.get_error > 0 then
|
370
|
-
f = File.new("
|
370
|
+
f = File.new("log/errors.log", "w")
|
371
371
|
f.puts(Error.get_error)
|
372
372
|
f.puts(Error.get_error_messages)
|
373
373
|
f.close
|