Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Exactly. To elaborate a bit for those who never used it in that way: you want to separate your unit tests from your app code. But you still want to give your tests access to non-public methods in order to test them independently. The solution is to put app code and tests in different folders, but in the same packages, and make everything you want to test package-scoped.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: