auto_test 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -1,61 +1,3 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
3
  Bundler::GemHelper.install_tasks
4
-
5
- namespace :auto_test do
6
- desc "starting the test"
7
- task :test do
8
- puts "Running auto_test..."
9
- sh "rails server -e test -p 3002 -d"
10
- sh "rspec lib/spec/requests/auto_spec.rb -o 'log/rspec.txt'"
11
- sh "rm 'log/rspec.txt'"
12
- Rake::Task[:error_calc].invoke
13
- Rake::Task[:stop].invoke
14
- end
15
-
16
- desc "calculating the errors"
17
- task :error_calc do
18
- err = File.read("log/errors.log")
19
- if err.to_i > 0 then
20
- puts "Do you want to see the error-path in firefox? Type yes/no:"
21
- a = STDIN.gets.chomp
22
- if a == "yes" then
23
- Rake::Task[:reduce_errors].invoke
24
- end
25
- end
26
- end
27
-
28
- desc "Reducing the error path"
29
- task :reduce_errors do
30
- puts "Reducing the error path, this could take a while..."
31
- sh "rspec lib/spec/requests/error_reduction_spec.rb -o 'log/reduce_err.txt'"
32
- sh "rm 'log/reduce_err.txt'"
33
- Rake::Task[:start_action_path].invoke
34
- end
35
-
36
- desc "starting the simulation"
37
- task :start_action_path do
38
- # paths = File.new("lib/auto_test/log/new_path.log")
39
- # n = 0
40
- # while line = paths.gets do
41
- # n = n + 1
42
- # end
43
- # puts "Error path reduced.There are #{n} paths to be visited."
44
- # puts "Press Enter to see the path in Firefox! "
45
- # STDIN.gets
46
- ruby 'lib/simulation.rb'
47
- end
48
-
49
-
50
- desc 'stopping rails'
51
- task :stop do
52
- begin
53
- pid_file = 'tmp/pids/server.pid'
54
- pid = File.read(pid_file).to_i
55
- Process.kill 9, pid
56
- File.delete pid_file
57
- rescue
58
- end
59
- end
60
-
61
- end
@@ -14,6 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.add_development_dependency('capybara')
15
15
  gem.add_development_dependency('database_cleaner')
16
16
  gem.add_development_dependency('watir-webdriver')
17
+ gem.add_development_dependency('rails', ">= 3.1")
17
18
 
18
19
  gem.files = `git ls-files`.split($\)
19
20
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,3 +1,3 @@
1
1
  module AutoTest
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maike Hargens
@@ -67,6 +67,17 @@ dependencies:
67
67
  version: "0"
68
68
  type: :development
69
69
  version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: rails
72
+ prerelease: false
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "3.1"
79
+ type: :development
80
+ version_requirements: *id006
70
81
  description: Automatic Testing Tool
71
82
  email:
72
83
  - mkh@informatik.uni-kiel.de