Project

General

Profile

Actions

Feature #3343

closed

Add testing of Plugins to Jenkins

Added by Greg Sutcliffe about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Once 3293 is fixed, we should figure out how to test plugins in jenkins.

Actions #1

Updated by Greg Sutcliffe about 11 years ago

  • Target version set to 1.15.0
Actions #2

Updated by Sam Kottler about 11 years ago

Some initial thoughts on this...

It'd be nice to have something like a plugin template available so that all the plugins use the same test framework and have some default tasks like being able to generate the xmlunit reports that Jenkins can consume. For now, all the plugins we want to test will need to have ci_reporter in the Gemfile and and require 'ci/reporter/rake/minitest' in their Rakefile.

Also, as for the job itself - we'll have to clone core into the workspace before running the tests?

Actions #3

Updated by Greg Sutcliffe about 11 years ago

I agree on the template - we do have a plugin template, so I'll send an update with the changes I made to foreman_default_hostgroup once #3293 is merged.

Actions #4

Updated by Dominic Cleal about 11 years ago

  • Status changed from New to Closed
  • Assignee set to Dominic Cleal
  • % Done changed from 0 to 100

test_plugin job has been added, which is designed to be generic. We've now got jobs calling it for katello, default_hostgroup, bootdisk and hooks. If there are any other plugins, please just clone one of the above jobs.

Actions

Also available in: Atom PDF