Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redmine Plugin Extension and Development

You're reading from   Redmine Plugin Extension and Development If you'd like to customize Redmine to meet your own precise project management needs, this is the ideal guide to understanding and realizing the full potential of plugins. Full of real-world examples and clear instructions.

Arrow left icon
Product type Paperback
Published in Mar 2014
Publisher
ISBN-13 9781783288748
Length 114 pages
Edition Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alex Bevilacqua Alex Bevilacqua
Author Profile Icon Alex Bevilacqua
Alex Bevilacqua
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Redmine Plugin Extension and Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Introduction to Redmine Plugins FREE CHAPTER 2. Extending Redmine Using Hooks 3. Permissions and Security 4. Attaching Files to Models 5. Making Models Searchable 6. Interacting with the Activity Stream 7. Managing Plugin Settings 8. Testing Your Plugin Releasing Your Plugin Index

Running tests


Redmine offers some rake tasks to facilitate interacting with a plugin's test suite. These tasks are shown in the following command:

$ rake -T | grep plugins:test
rake redmine:plugins:test
rake redmine:plugins:test:functionals
rake redmine:plugins:test:integration
rake redmine:plugins:test:units

Running any of these rake tasks will run the tests for all installed plugins. In order to limit the tests for our plugin, we need to provide a NAME environment variable.

$ rake redmine:plugins:test:functionals NAME=redmine_knowledgebase
Run options: 

# Running tests:

..

Finished tests in 0.118963s, 16.8119 tests/s, 16.8119 assertions/s.

2 tests, 2 assertions, 0 failures, 0 errors, 0 skips

The rake tasks for running plugin tests are standard Rake::TestTask instances (http://rake.rubyforge.org/classes/Rake/TestTask.html), so passing options through a TESTOPTS environment variable will work the same as if the parameters were provided directly.

$ rake redmine:plugins:test:functionals...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image