Actions
Bug #10135
closedCan not build datasource test: missing dependencies
Pull Request:
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
Actions