Project

General

Profile

Actions

Patch #14588

closed

Add example on how to run a single test to documentation

Added by Mischa The Evil almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

A tiny1 documentation update to add a new example on how to run a single test. The idea came up after seeing OpenProject-commit:45ab6858 and remembering myself looking up the option repeatedly in the past.

Index: doc/RUNNING_TESTS
===================================================================
--- doc/RUNNING_TESTS    (revision 12071)
+++ doc/RUNNING_TESTS    (working copy)
@@ -11,7 +11,8 @@
 Run `rake test` to run the entire test suite (except the tests for the
 Apache perl module Redmine.pm and Capybara tests, see below).

-You can run `ruby test/unit/issue_test.rb` for running a single test case.
+You can run `ruby test/unit/issue_test.rb` for running a single test case and
+`ruby test/unit/issue_test.rb -n test_create` for running a single test.

 Before running tests, you need to configure both development
 and test databases.

1 so small that I won't attach a patch file... ;)

Actions

Also available in: Atom PDF