Project

General

Profile

Feature #6549

Core tests should be disable-able from plugins

Added by Greg Sutcliffe almost 9 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Plugin integration
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Sometime plugins need to modify tests. Consider this scenario:

Core (psuedocode):

test "a thing" do
assert Hosts page should have one menu entry containing "Hosts"
end

This will pass, as we have just "All Hosts" by default. Now add the Discovery plugin, and this test will fail, as now we have "All Hosts" and "Discovered Hosts"

In general, we need a way for plugins to tell core that certain tests no longer make sense while the plugin is present - we assume the plugin itself will contain tests for the new/modified functionality


Related issues

Related to Foreman - Bug #11025: Test runner isn't run when using the Jenkins test tasksClosed2015-07-06

Associated revisions

Revision c4741504 (diff)
Added by Greg Sutcliffe over 8 years ago

Fixes #6549 - Add :tests_to_skip to plugin registration block

Revision 088c656e (diff)
Added by Eric Helms over 8 years ago

Refs #6549: Ensure tests to skip exist to avoid too deep stack.

History

#1 Updated by Greg Sutcliffe almost 9 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by The Foreman Bot almost 9 years ago

  • Pull request https://github.com/theforeman/foreman/pull/1576 added

#3 Updated by Anonymous almost 9 years ago

  • Target version changed from 1.8.0 to 1.7.5

#4 Updated by Anonymous almost 9 years ago

  • Target version changed from 1.7.5 to 1.7.4

#5 Updated by Anonymous over 8 years ago

  • Target version changed from 1.7.4 to 1.7.3

#6 Updated by Dominic Cleal over 8 years ago

  • Legacy Backlogs Release (now unused) set to 21

#7 Updated by Greg Sutcliffe over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#8 Updated by Dominic Cleal almost 8 years ago

  • Related to Bug #11025: Test runner isn't run when using the Jenkins test tasks added

Also available in: Atom PDF