Book Image

Redmine Plugin Extension and Development

By : Alex Bevilacqua
Book Image

Redmine Plugin Extension and Development

By: Alex Bevilacqua

Overview of this book

Table of Contents (16 chapters)
Redmine Plugin Extension and Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Testing infrastructure layout


As we initially used the Redmine plugin generator (see Chapter 1, Introduction to Redmine Plugins) when we created our plugin, we should already have a skeletal test directory available for our plugin.

The basic structure of this test folder should be folders named fixtures, functional, and unit, and a test_helper.rb file.

$ tree test
test
├── fixtures
│   ├── kb_articles.yml
│   └── kb_categories.yml
├── functional
│   ├── articles_controller_test.rb
│   ├── categories_controller_test.rb
├── integration
│   ├── accessing_content_test.rb
├── test_helper.rb
└── unit
    ├── article_test.rb
    └── category_test.rb

The test_helper.rb file that Redmine generates is populated with default configuration, which loads Redmine's main test helper.