Project

General

Profile

Task #1124

Story #1086: Create a common test resources location

move common test resources to own package under /software/cicore/{trunk/}

Added by Rob Nahf over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Documentation
Target version:
Start date:
2010-11-30
Due date:
% Done:

100%

Estimated time:
3.00 h
Milestone:
Product Version:
*
Story Points:
Sprint:

Description

moving common test resources to own package allows more seamless usage by unit tests in all of the other java packages (via getResourceAsStream()). Need to create a new directory structure and add it as a dependency to d1_common_java pom.xml. use the standard maven directory structure (src/test/resources). Create new resources and see if they can be accessed by d1_integration, d1_common_java, d1_libclient_java, etc.)


Related issues

Blocks Infrastructure - Story #1090: Consolidate common test resources into new shared package Closed

History

#1 Updated by Rob Nahf almost 13 years ago

  • Status changed from New to Rejected

keeping the location in d1_integration

#2 Updated by Matthew Jones almost 13 years ago

  • Status changed from Rejected to In Progress

#4 Updated by Rob Nahf almost 13 years ago

the shared resource mechanism blocks automatic "inheritance" of the resources. getResourcesAsStream() doesn't seem to need this mechanism, so simply leaving the resources in the src/main/resources directory. (src/test/resources doesn't seem to work).

committed the package d1_test_resources
added it as a dependency to d1_common_java and wrote unit test for it - still need to get it working (not working from command line)

#5 Updated by Rob Nahf almost 13 years ago

  • translation missing: en.field_remaining_hours set to 2.0

#6 Updated by Rob Nahf almost 13 years ago

Status
* tested inheritance issues (availability of these resources from package that depends on d1_common_java), and the transitive inheritance does work.

* d1_test_resources is a dependency of d1_common_java (scope = runtime), and needs to be included in any buildout scripts that deploy d1_common_java (if tests need to pass).
* developers will need to checkout and install this package to put the jar in local maven repository.

Next step is Hudson configuration. (hudson needs to checkout and install)

#7 Updated by Rob Nahf almost 13 years ago

  • Status changed from In Progress to Closed
  • translation missing: en.field_remaining_hours changed from 2.0 to 0.0

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)