crash_monkey 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +106 -0
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/crash_monkey.gemspec +4 -2
  5. metadata +6 -4
@@ -0,0 +1,106 @@
1
+ CrashMonkey
2
+ ===========
3
+
4
+ 概要
5
+ ----
6
+
7
+ iOSのアプリケーションをモンキーテスト(ランダムな操作をひたすら行う)するためのツールです。
8
+ 動作イメージはこの[デモ動画](http://youtu.be/y5PZGVbLHtI)を御覧ください。
9
+ iPhone Simulatorの操作にはUIAutomationを使っていて、ベースとして[ui-auto-monkey](https://github.com/jonathanpenn/ui-auto-monkey)を使わせて頂きました。
10
+
11
+
12
+ 動作環境
13
+ -------
14
+
15
+ 以下の環境でのみ確認してあります。
16
+
17
+ * Max OS X 10.8.4
18
+ * Xcode 4.6.3(Build version 4H1503)
19
+ * Ruby 1.8.7-p371
20
+
21
+ Rubyについては、1.9系, 2.0系でも動くと思います。
22
+
23
+
24
+ Install
25
+ --------
26
+
27
+ ```
28
+ gem install crash_monkey --no-ri --no-rdoc
29
+ ```
30
+
31
+ 使いかた
32
+ ------
33
+
34
+ ```
35
+ crash_monkey -a <APP_NAME or APP_PATH>
36
+ ```
37
+
38
+ `-a`でアプリの名前かPATHを指定します。
39
+
40
+ #### 例
41
+
42
+ ```
43
+ crash_monkey -a MyAwesomeApp.app # (1)
44
+ crash_monkey -a build/Debug-iphonesimulator/MyAwesomeApp.app # (2)
45
+ crash_monkey -a ~/Library/Developer/Xcode/DerivedData/MyAwesomeApp-ffumcy/Build/Products/Debug-iphonesimulator/MyAwesomeApp.app # (3)
46
+ ```
47
+
48
+ * (1) の指定方法では、iPhone Simulatorにインストールされているアプリで名前が一致するものを実行します。同名のものが複数ある場合は更新時刻が一番新しいものを使います
49
+ * (2)(3) の指定方法では、PATHにあるアプリを実行します。ただし、iPhone Simulator用にビルドされたものじゃないと使えないので注意して下さい。
50
+ * Dir名に **iphonesimulator** と入っているものが大抵そうです
51
+
52
+
53
+
54
+
55
+ ### Options
56
+
57
+ ```
58
+ % crash_monkey
59
+ Usage: crash_monkey [options]
60
+ -a app_name Target Application(Required)
61
+ -n run_count How many times monkeys run(default: 2)
62
+ -d result_dir Where to output result(default: ./crash_monkey_result)
63
+ -t time_limit_sec Time limit of running(default: 100 sec)
64
+ -c config_path Configuration JSON Path
65
+ --show-config Show Current Configuration JSON
66
+ --list-app Show List of Installed Apps in iOS Simulator
67
+ ```
68
+
69
+
70
+ #### -n
71
+ Monkey Testを実行する回数を指定します。
72
+
73
+ #### -d
74
+ 結果を出力するDirを指定します。
75
+
76
+ #### -t
77
+ 1回のテストのTimeoutを秒で指定します。
78
+
79
+ #### -c
80
+ UIAutomationの実行時に使うJSON形式のConfigファイルを指定します。雛形については `--show-config`オプションで取得してください。
81
+
82
+ #### --show-config
83
+ UIAutomationの実行時に使うConfigファイルをJSON形式で出力します。変更したい場合は、一度ファイルに保存してから変更し、 `-c` で指定してください。
84
+
85
+ #### --list-app
86
+
87
+ iPhone Simulatorにインストールされているアプリの名前の一覧を表示します。
88
+
89
+
90
+ Contributing to CrashMonkey
91
+ ---------------------
92
+
93
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
94
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
95
+ * Fork the project.
96
+ * Start a feature/bugfix branch.
97
+ * Commit and push until you are happy with your contribution.
98
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
99
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
100
+
101
+ Copyright
102
+ ----------
103
+
104
+ Copyright (c) 2013 Ken Morishita. See LICENSE.txt for
105
+ further details.
106
+
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = 'crash_monkey'
18
- gem.homepage = 'http://github.com/mokemokechicken/crash_monkey'
18
+ gem.homepage = 'https://github.com/mokemokechicken/CrashMonkey'
19
19
  gem.license = 'MIT'
20
20
  gem.summary = 'Monkey Test For iOS Application'
21
21
  gem.description = 'This is a Monkey Test Tool using UIAutomation.'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{crash_monkey}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ken Morishita"]
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.executables = ["crash_monkey"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
+ "README.md",
19
20
  "README.rdoc"
20
21
  ]
21
22
  s.files = [
@@ -24,6 +25,7 @@ Gem::Specification.new do |s|
24
25
  "Gemfile",
25
26
  "Gemfile.lock",
26
27
  "LICENSE.txt",
28
+ "README.md",
27
29
  "README.rdoc",
28
30
  "Rakefile",
29
31
  "VERSION",
@@ -50,7 +52,7 @@ Gem::Specification.new do |s|
50
52
  "lib/ui-auto-monkey/UIAutoMonkey.js",
51
53
  "spec/spec_helper.rb"
52
54
  ]
53
- s.homepage = %q{http://github.com/mokemokechicken/crash_monkey}
55
+ s.homepage = %q{https://github.com/mokemokechicken/CrashMonkey}
54
56
  s.licenses = ["MIT"]
55
57
  s.require_paths = ["lib"]
56
58
  s.rubygems_version = %q{1.6.2}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crash_monkey
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ken Morishita
@@ -135,6 +135,7 @@ extensions: []
135
135
 
136
136
  extra_rdoc_files:
137
137
  - LICENSE.txt
138
+ - README.md
138
139
  - README.rdoc
139
140
  files:
140
141
  - .document
@@ -142,6 +143,7 @@ files:
142
143
  - Gemfile
143
144
  - Gemfile.lock
144
145
  - LICENSE.txt
146
+ - README.md
145
147
  - README.rdoc
146
148
  - Rakefile
147
149
  - VERSION
@@ -168,7 +170,7 @@ files:
168
170
  - lib/ui-auto-monkey/UIAutoMonkey.js
169
171
  - spec/spec_helper.rb
170
172
  has_rdoc: true
171
- homepage: http://github.com/mokemokechicken/crash_monkey
173
+ homepage: https://github.com/mokemokechicken/CrashMonkey
172
174
  licenses:
173
175
  - MIT
174
176
  post_install_message: