Project

General

Profile

Actions

Bug #10135

closed

Can not build datasource test: missing dependencies

Added by François ARMAND almost 8 years ago. Updated about 6 years ago.

Status:
Released
Priority:
1 (highest)
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

For now, we are not able to compile data sources plugin tests because they are using test classes defined in Rudder core. But these test classes are not packaged, and so can't be used as dependencies:

For example:

[ERROR] import com.normation.BoxSpecMatcher
[ERROR]        ^
[ERROR] /home/fanf/java/workspaces/rudder-project/rudder-plugin-datasources/src/test/scala/com/normation/rudder/datasources/JsonPathTest.scala:49: error: not found: type BoxSpecMatcher
[ERROR] class JsonPathTest extends Specification with BoxSpecMatcher with Loggable {

We need to make a "test-jar" for Rudder, and depend on it in data sources plugin.
It may not be easy, see: http://stackoverflow.com/questions/7751860/how-do-i-include-a-dependencys-test-jar-into-a-maven-projects-deployment


Subtasks 1 (0 open1 closed)

Bug #10145: We need to produce tests-jar for plugin to depend onReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF