cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the right place for test resources

Former Member
0 Kudos

Hi,

in my hybris project I have a unit test that uses a .csv file for execution. This file is placed next to the unit test class in "testsrc".

Executed from my IDE all went fine. But within the CI the unit test could no access it's resource. My guess is that all in "testsrc" not ending with .java wil be ignored.

In a maven project would be a folder "src/test/resoucres" to place those files. Is there an equivalent in hybris?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please put your .csv file under \resources\testsrc e.g. \hybris\bin\ext-commerce\basecommerce\resources\testsrc

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, mix test resources with production resources may be very bad solution!

Former Member
0 Kudos

Hi, is resources/testsrc the only solution? With this approach test resources and productive resources are mixed. There's no separation.