Data directory for TestCases

Hi,

I'm writing test cases for my new plugin and I need to access assets stored on disk. How can I find path to the test directory, of my particular plugin?

I noticed this piece of code:
PluginPathManager.getPluginHomePath("properties")

But it points to the final location of sandbox and not to my "local" test directory.

Thanks for help

1 comment
Comment actions Permalink

I realized I can just use relative paths and it works.

String testPath = "tests/data/test01.html";

Is this the correct way?

0

Please sign in to leave a comment.