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.
@@ -1,3 +1,3 @@
1
1
  module AutoTest
2
- VERSION = "0.0.8.6"
2
+ VERSION = "0.0.8.7"
3
3
  end
data/lib/auto_test.rb CHANGED
@@ -25,6 +25,10 @@ module AutoTest
25
25
  DatabaseCleaner.start
26
26
  DatabaseCleaner.clean
27
27
  end
28
+
29
+ def self.start_rspec
30
+ %x(rspec 'lib/spec/requests/auto_spec.rb -o 'log/rspec.txt'')
31
+ end
28
32
 
29
33
  def links_to_exclude(*links)
30
34
  Dsl.links_to_exclude(*links)
@@ -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
- sh "rspec lib/spec/requests/auto_spec.rb -o 'log/rspec.txt'"
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("lib/auto_test/log/user_input.log", "w")
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("lib/auto_test/log/paths.log", "w")
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("lib/auto_test/log/errors.log", "w")
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: auto_test
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.8.6
5
+ version: 0.0.8.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maike Hargens