Project

General

Profile

Feature #3343

Add testing of Plugins to Jenkins

Added by Greg Sutcliffe almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

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

History

#1 Updated by Greg Sutcliffe almost 8 years ago

  • Target version set to 1.15.0

#2 Updated by Sam Kottler almost 8 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?

#3 Updated by Greg Sutcliffe almost 8 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.

#4 Updated by Dominic Cleal almost 8 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.

Also available in: Atom PDF