Project

General

Profile

Story #1086

Create a common test resources location

Added by Rob Nahf about 14 years ago. Updated over 13 years ago.

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

100%

Estimated time:
(Total: 3.00 h)
Story Points:
Sprint:

Description

It would be advantageous to have common tests cases for integration testing, and possibly available to unit tests as well. The current proposal is to take advantage of the existing location in the repository: d1_integration/src/test/resources, and (re)locate python integration tests into d1_integration as well.

If a more generalized location is needed, the proposal would be to create a new folder under cicore/trunk/. For consideration here is balancing the pros and cons of relying on external data for unit tests, which would evolve independent from the package, but would also be branched and tagged.

Related is the recommendation of creating negative test cases that contain invalid or malformed data to test error handling capabilities of the dataONE products.


Subtasks

Task #1108: add location to classpathClosedRob Nahf

Task #1087: simplify resource hierarchy in d1_integrationClosedRob Nahf

Task #1089: determine resource organization below the new general path (d1_integration/src/test/resources/d1testdocs)ClosedRob Nahf

Task #1088: refactor d1_integration tests to point to new resource hierarchyClosedRob Nahf

Task #1124: move common test resources to own package under /software/cicore/{trunk/}ClosedRob Nahf

Task #1524: setup d1_test_resources on Hudson...ClosedDave Vieglais

Task #1523: uncomment changes when Hudson deployment solution implementedClosedRob Nahf


Related issues

Related to Infrastructure - Story #1083: Common unicode test guids for java and python libclients Closed
Related to Infrastructure - Story #1090: Consolidate common test resources into new shared package Closed

History

#1 Updated by Rob Nahf about 14 years ago

It would be advantageous to have common tests cases for integration testing, and possibly available to unit tests as well. The current proposal is to take advantage of the existing location in the repository: d1_integration/src/test/resources, and (re)locate python integration tests into d1_integration as well.

If a more generalized location is needed, the proposal would be to create a new folder under cicore/trunk/. For consideration here is balancing the pros and cons of relying on external data for unit tests, which would evolve independent from the package, but would also be branched and tagged.

Related is the recommendation of creating negative test cases that contain invalid or malformed data to test error handling capabilities of the dataONE products.

#2 Updated by Dave Vieglais about 14 years ago

  • Position deleted (17)
  • Target version changed from Sprint-2010.46 to Sprint-2010.47
  • Position set to 10

#3 Updated by Dave Vieglais about 14 years ago

  • Target version changed from Sprint-2010.47 to Sprint-2010.48
  • Position deleted (30)
  • Position set to 2

#4 Updated by Rob Nahf about 14 years ago

  • Status changed from New to In Progress

#5 Updated by Rob Nahf about 14 years ago

  • Subject changed from Common test resources location to Create a common test resources location

#6 Updated by Rob Nahf about 14 years ago

Instead of adding to the classpath to make resources available, suggest moving the common test resources into their own standalone package, or perhaps bundled with the schemas. A simple test indicates that the java method getResourceAsStream() will find resources contained within dependencies. Moving them to an independent package that becomes a dependency of d1_common_java will allow us to version (tag) the data files along with the schema versions. This allows us to control support to earlier schema versions through pom.xml configuration.

#7 Updated by Dave Vieglais about 14 years ago

  • Target version changed from Sprint-2010.48 to Sprint-2010.50
  • Position set to 8
  • Position deleted (31)

#8 Updated by Rob Nahf about 14 years ago

  • Position set to 21
  • Position deleted (9)

#9 Updated by Dave Vieglais almost 14 years ago

  • Target version changed from Sprint-2010.50 to Sprint-2011.02

#10 Updated by Dave Vieglais almost 14 years ago

  • Target version changed from Sprint-2011.02 to Sprint-2011.03
  • Position deleted (22)
  • Position set to 4

#11 Updated by Dave Vieglais almost 14 years ago

  • Target version changed from Sprint-2011.03 to Sprint-2011.08
  • Position deleted (21)
  • Position set to 1

#12 Updated by Rob Nahf almost 14 years ago

  • Position set to 1
  • Target version changed from Sprint-2011.08 to Sprint-2011.10-Block.2
  • Position deleted (45)

#13 Updated by Dave Vieglais almost 14 years ago

  • Target version deleted (Sprint-2011.10-Block.2)
  • Position deleted (32)
  • Position set to 5

#14 Updated by Dave Vieglais over 13 years ago

  • Target version set to Sprint-2011.17-Block.3
  • Position deleted (40)
  • Position set to 2

#15 Updated by Dave Vieglais over 13 years ago

  • Position set to 184
  • Position deleted (6)
  • Target version changed from Sprint-2011.17-Block.3 to Sprint-2011.18-Block.3

#16 Updated by Dave Vieglais over 13 years ago

  • Target version changed from Sprint-2011.18-Block.3 to Sprint-2011.20-Block.3

#17 Updated by Dave Vieglais over 13 years ago

  • Position deleted (186)
  • Position set to 1

#18 Updated by Dave Vieglais over 13 years ago

  • Position deleted (5)
  • Position set to 3
  • Target version changed from Sprint-2011.20-Block.3 to Sprint-2011.21-Block.3

#19 Updated by Dave Vieglais over 13 years ago

  • Target version changed from Sprint-2011.21-Block.3 to Sprint-2011.22-Block.3
  • Position set to 3
  • Position deleted (15)

#20 Updated by Rob Nahf over 13 years ago

  • Status changed from In Progress to Closed

completed deploying d1_test_resources package to svn and updating maven package dependencies. The task of refactoring existing resources has been promoted to it's own story and put in the backlog (#1090)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)