Project

General

Profile

Actions

Feature #6549

closed

Core tests should be disable-able from plugins

Added by Greg Sutcliffe over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Plugin integration
Target version:
Difficulty:
medium
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Bug #11025: Test runner isn't run when using the Jenkins test tasksClosedEric Helms07/06/2015Actions
Actions

Also available in: Atom PDF