where do i start on writing plugin test? I have written some toy plugins and would like to start on doing TDD with my plugins.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your plugin are RCP (Rich Client Platform) plugins, with SWT, you could use SWTBot.
Those test can be encapsulated into JUnit one:
If your plugins are OSGi-based, you must be aware that OSGi bundle runs it’s own class loader and therefore the classes appear not to be in the same package.
See "Is OSGi the enemy of JUnit tests?"
From Patrick’s article:
If your plugins need just some simple testing, a JUnit test suite is enough