テストの実行

更新日 2024/04/16

全プラグインのテストの実行

下記コマンドを実行すると、Redmineの vendor/plugins ディレクトリ以下に存在するすべてのプラグインのすべてのテストが行われる。

bundle exec rake redmine:plugins:test

特定プラグインのテストの実行

NAME=vendor/plugins 内のプラグインディレクトリ名を指定すると、特定プラグインのテストのみを実行できる。

bundle exec rake redmine:plugins:test NAME=プラグイン名

そのほかのテストの実行

コマンド 説明
bundle exec rake redmine:plugins:test:functionals Functionalテストの実行
bundle exec rake redmine:plugins:test:integration Integrationテストの実行
bundle exec rake redmine:plugins:test:units Unitテストの実行