Project

General

Profile

Feature #6549

Core tests should be disable-able from plugins

Added by Greg Sutcliffe about 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Plugins-Engines
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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 almost 5 years ago

Fixes #6549 - Add :tests_to_skip to plugin registration block

Revision 088c656e (diff)
Added by Eric Helms almost 5 years ago

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

History

#1 Updated by Greg Sutcliffe about 5 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by The Foreman Bot about 5 years ago

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

#3 Updated by Dmitri Dolguikh almost 5 years ago

  • Target version changed from 1.8.0 to 1.7.5

#4 Updated by Dmitri Dolguikh almost 5 years ago

  • Target version changed from 1.7.5 to 1.7.4

#5 Updated by Dmitri Dolguikh almost 5 years ago

  • Target version changed from 1.7.4 to 1.7.3

#6 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 21

#7 Updated by Greg Sutcliffe almost 5 years ago

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

#8 Updated by Dominic Cleal about 4 years ago

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

Also available in: Atom PDF