3115件ヒット
[1-100件を表示]
(0.043秒)
別のキーワード
ライブラリ
- ビルトイン (1007)
- csv (156)
- erb (60)
- fileutils (36)
- json (24)
-
json
/ add / exception (12) - logger (48)
- mkmf (12)
-
net
/ http (48) - objspace (12)
- openssl (12)
- optparse (84)
- pathname (36)
- rake (708)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) -
rake
/ testtask (48) - set (18)
- strscan (480)
-
test
/ unit (1) - win32ole (24)
クラス
-
ARGF
. class (120) - Binding (7)
- CSV (156)
- Dir (12)
- ERB (60)
- Exception (44)
- File (168)
- IO (80)
- Logger (48)
- Method (12)
- Module (12)
-
Net
:: HTTPGenericRequest (48) -
ObjectSpace
:: WeakMap (12) -
OpenSSL
:: BN (12) - OptionParser (84)
- Pathname (36)
-
Rake
:: Application (108) -
Rake
:: FileList (216) -
Rake
:: FileTask (24) -
Rake
:: InvocationChain (60) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (24) -
Rake
:: TaskArguments (72) -
Rake
:: TestTask (48) - Set (24)
- String (87)
- StringScanner (468)
- Thread (24)
- TracePoint (24)
-
WIN32OLE
_ VARIANT (12)
モジュール
- FileTest (174)
- FileUtils (36)
- GC (24)
- JSON (12)
-
JSON
:: Generator :: GeneratorMethods :: String (12) - Kernel (165)
- ObjectSpace (12)
- Rake (36)
-
Rake
:: Cloneable (24) -
Rake
:: TaskManager (156) -
Test
:: Unit (1)
オブジェクト
- ENV (48)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (24)
- == (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Proc (12)
- Rubyの起動 (4)
- Ruby用語集 (12)
- StringScanner (12)
-
WIN32OLE
_ VARIANT (12) - [] (48)
- []= (12)
-
add
_ loader (12) -
add
_ row (12) -
allocation
_ sourcefile (12) - append (24)
- application (12)
- application= (12)
- atime (12)
-
backtrace
_ locations (36) -
beginning
_ of _ line? (12) - binmode (12)
- body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - bol? (12)
-
caller
_ locations (24) - check (12)
-
check
_ until (12) - chomp (12)
- chop (12)
- chown (12)
- chr (12)
- clear (24)
-
clear
_ exclude (12) - clone (24)
- close (24)
- closed? (12)
- concat (12)
-
const
_ source _ location (12) -
create
_ makefile (12) -
create
_ rule (12) - ctime (36)
-
current
_ scope (12) -
datetime
_ format (12) -
datetime
_ format= (12) -
def
_ class (12) -
def
_ module (12) -
define
_ task (12) - delete (36)
-
delete
_ if (12) - dump (12)
- dup (24)
-
each
_ char (24) -
each
_ codepoint (24) - egrep (12)
- empty? (21)
- encoding (12)
- eos? (12)
-
excluded
_ from _ list? (12) -
executable
_ real? (12) - exist? (12)
- existing (12)
- existing! (12)
- exists? (9)
- ext (12)
- fdatasync (12)
- filter (36)
- flush (12)
- fnmatch (12)
- formatter (12)
- gets (36)
- grpowned? (12)
- gsub (36)
- gsub! (12)
- hash (12)
- identical? (12)
- import (12)
-
in
_ namespace (12) - init (12)
-
inplace
_ mode (12) - inspect (30)
- intern (12)
-
internal
_ encoding (12) -
is
_ a? (12) -
kind
_ of? (12) - lambda (18)
-
last
_ comment (12) -
last
_ description (12) -
last
_ description= (12) -
latest
_ gc _ info (24) - lchmod (12)
- lchown (12)
- length (12)
- link (12)
- load (12)
- loader= (12)
- lookup (12)
- match? (12)
- matched (12)
- matched? (12)
-
matched
_ size (12) - member? (12)
-
minitest
/ unit (1) - mkdir (12)
- move (12)
- mtime (12)
- mv (12)
- name (12)
- names (12)
- needed? (12)
- new (99)
-
new
_ scope (12) -
on
_ head (12) -
on
_ tail (12) - open (72)
-
original
_ dir (24) - owned? (12)
-
package
_ files (12) -
package
_ files= (12) - parse (24)
- parse! (12)
- path (12)
- pathmap (12)
- peek (12)
- peep (12)
- pointer (12)
- pointer= (12)
- pos (12)
- pos= (12)
-
post
_ match (12) -
pre
_ match (12) -
prime
_ fasttest? (12) - proc (19)
-
program
_ name= (12) - puts (12)
- rake (12)
- rakefile (12)
- read (24)
- readable? (12)
- readlines (12)
- readlink (12)
- reject (24)
- reject! (12)
- reset (12)
- resolve (12)
- rest (12)
- rest? (12)
-
rest
_ size (12) - restsize (12)
- result (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby
_ opts (12) -
ruby
_ opts= (12) -
rubygems
/ commands / check _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ test _ utilities (12) - run (12)
- scan (12)
-
scan
_ full (12) -
scan
_ until (12) -
search
_ full (12) -
set
_ backtrace (12) - setgid? (12)
- setuid? (12)
-
setup
_ argv (1) - shell (6)
- size (12)
- size? (12)
- skip (12)
-
skip
_ until (12) - socket? (12)
-
source
_ location (7) - src (12)
- sticky? (12)
- string (12)
- string= (12)
- sub! (12)
-
sub
_ ext (12) - symlink? (12)
-
synthesize
_ file _ task (12) - tasks (12)
- terminate (12)
-
test
/ unit (12) -
to
_ a (24) -
to
_ ary (12) -
to
_ hash (12) -
to
_ json (24) -
to
_ s (30) -
top
_ level (12) -
top
_ level _ tasks (12) -
tty
_ output= (12) - unlink (12)
- unscan (12)
- warn (8)
- warning (12)
-
with
_ defaults (12) - writable? (12)
- write (8)
- yaml (12)
-
yaml
/ store (12) - zero? (12)
- クラス/メソッドの定義 (12)
- プログラム・文・式 (12)
- リテラル (12)
- 手続きオブジェクトの挙動の詳細 (12)
- 演算子式 (12)
検索結果
先頭5件
-
rubygems
/ test _ utilities (32000.0) -
テストで使用するクラスやメソッドを定義しています。
テストで使用するクラスやメソッドを定義しています。 -
rubygems
/ commands / install _ command (26042.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
...nv)
-f, --[no-]force 依存関係のチェックをバイパスして強制的にインストールします
-t, --[no-]test インストール時にユニットテストを実行します
-w, --[no-]wrappers Use bin wrappers for execut......ッケージをインストールします
--[no-]format-executable Make installed executable names match ruby.
If ruby is ruby18, foo_exec will be
foo_exec18
Local/Remote Options:
-l, --local......た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME インストールする Gem パッケージ... -
rubygems
/ commands / check _ command (26012.0) -
インストールされている Gem パッケージを検証するためのライブラリです。
...Gem パッケージを検証します
-a, --alien 管理されていないパッケージを報告します
-t, --test Gem パッケージのユニットテストを実行します
-v, --version VERSION 特定のバージョン......た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
インストールされている Gem パッケージをチ... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (18136.0) -
単体のファイルでファイルテストを行います。
...me
: ?A
ファイルの最終アクセス時刻を返す -> Time
: ?C
ファイルの inode 変更時刻を返す -> Time
//emlist[例][ruby]{
IO.write("testfile", "test")
test("r", "testfile") # => true
test("s", "testfile") # => 4
test("M", "testfile") # => 2018-03-31 07:38:40 +0900
//}... -
Kernel
. # test(cmd , file1 , file2) -> bool (18131.0) -
2ファイル間のファイルテストを行います。
...?-
ファイル1とファイル2が同一のファイルである
//emlist[例][ruby]{
IO.write("testfile1", "test1")
IO.write("testfile2", "test2")
%w(= < > -).each do |e|
result = test(e, "testfile1", "testfile2")
puts "#{e}: #{result}"
end
//}
# => =: true
# => <: false
# => >: false
#... -
Rake
:: TestTask # ruby _ opts -> Array (9117.0) -
テスト実行時に Ruby コマンドに渡されるオプションを返します。
...テスト実行時に Ruby コマンドに渡されるオプションを返します。... -
Rake
:: TestTask # ruby _ opts=(options) (9117.0) -
テスト実行時に Ruby コマンドに渡されるオプションをセットします。
...テスト実行時に Ruby コマンドに渡されるオプションをセットします。
@param options 配列でオプションを指定します。... -
Rubyの起動 (6291.0)
-
Rubyの起動 * cmd_option * shebang
...Rubyの起動
* cmd_option
* shebang
Rubyインタプリタの起動は以下の書式のコマンドラインにより行います。
ruby [ option ...] [ -- ] [ programfile ] [ argument ...]
ここで、option は後述のcmd_option
のいずれかを指定します。-- は、オプシ......ョン列の終りを明示するため
に使用できます。programfile は、Ruby スクリプトを記述したファイ
ルです。これを省略したり`-' を指定した場合には標準入力を Ruby ス
クリプトとみなします。
programfile が `#!' で始まるファイル......指定します。
//emlist{
# test.rb
def f6 = raise
def f5 = f6
def f4 = f5
def f3 = f4
def f2 = f3
def f1 = f2
f1
//}
//emlist{
% ruby --backtrace-limit=3 test.rb
test.rb:1:in `f6': unhandled exception
from test.rb:2:in `f5'
from test.rb:3:in `f4'
from test.rb:4:in `f3'
... 3 levels...... -
test
/ unit (6252.0) -
ユニットテストを行うためのライブラリです。
... Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/
なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実装し
ていましたが、上記のtest/unitと完全な互換性がある訳ではありません。
Ruby......っています。
* Rubyのテスティングフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html
=== 使い方
Test::Unit は以下のよう......foo"
end
def bar
"foo"
end
end
次にユニットテスト(test_foo.rb)を書きます。テストを実行するメソッド(テストメソッド)の名前は
全て test_ で始まる必要があります。テストメソッドが実行される前には setup... -
minitest
/ unit (6120.0) -
ユニットテストを行うためのライブラリです。
...ラリです。
=== 使い方
minitest/unit は以下のように使います。
テスト対象のソース (foo.rb) を用意します。
class Foo
def foo
"foo"
end
def bar
"foo"
end
end
次にユニットテスト (test_foo.rb) を書きます。
テストを......) の名前はすべて "test" で始まる必要があります。
テストメソッドが実行される前には setup メソッドが必ず実行されます。
テストメソッドが実行された後には teardown メソッドが必ず実行されます。
minitest/unit を Kernel.#requir......require 'minitest/unit'
require 'minitest/autorun'
require 'foo'
# 以下略
テストを実行するには上で用意した test_foo.rb を実行します。
デフォルトではすべてのテストが実行されます。
$ ruby test_foo.rb
Loaded suite test_foo
Started
F.... -
GC
. latest _ gc _ info(key) -> object (6106.0) -
最新のGCの情報を返します。
...ます。
//emlist[例][ruby]{
latest = GC.latest_gc_info
latest # => {:major_by=>nil, :gc_by=>:newobj, :have_finalizer=>false, :immediate_sweep=>false, :state=>:sweeping}
stat = GC.stat
merged = GC.latest_gc_info(stat)
merged == latest.merge(stat) # => true
GC.latest_gc_info(:gc_by) # => :new...