mardi 27 janvier 2015

External test data with Jenkins and Junit

A project I am working on uses JUnit for unit tests, with Jenkins to run them.


A particular test I have requires a csv file of test data - so my question is how to access this from within my test.


Currently I try to read the test data from the following path:



"/resources/com/(company)/(project)/(feature)/test_data.csv"


For test file:



"test/com/(company)/(project)/(feature)/test_file.java"


This runs fine on my local machine, but not within Jenkins - any ideas what I'm doing wrong? Is there somewhere else that it should be stored?


Aucun commentaire:

Enregistrer un commentaire