I would like to create some unit/integration/functional tests for my plugin. I've done unit tests for a plugin before, but the input and output I was testing was Java Core objects, not Atlassian JIRA objects. This time, I need to create tests for a plugin servlet with functions that take in HTTP requests, projects, versions, and users, while also making use of many "manager" classes. I want to know how I can create these sorts of tests.
I looked around for documentation, tutorials, and questions about this, but couldn't find anything that quite fits my requirements that I've outlined above.
I'm not sure how I would go about setting up the HTTP requests, projects, versions, and users programmatically without it being overly complex and time consuming. I wonder if there's something that Atlassian provides for this sort of thing. I've noticed some "mock" classes in the documentation - maybe that's what I need.
I'd love to get some help with finding documentation or tutorials on how to do this sort of testing for a JIRA plugin. Tips and recommendations are also welcome.
There are two types of integration testing Jira: wired tests and "gui" tests.
In the wired test you test all services, which are exported by your Jira plugin. You can find more info here:
In the "gui" test you test Jira via gui. You can find more info here:
https://developer.atlassian.com/server/jira/platform/writing-integration-tests-for-your-jira-add-on/
Oh, I like the sound of jWebUnit tests! Having some trouble setting it up though.
Also, some other community posts called that an outdated tutorial. I'll see if TestKit works better with QuickReload.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
pls i need someone to help me with my github profile setup and i won mind having some from this platform has a mentor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.