Data directory for TestCases


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:

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

Thanks for help

1 comment

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

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

Is this the correct way?


Please sign in to leave a comment.