Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do the unit tests run? #342

Closed
NetAppBlueDevil opened this issue Nov 4, 2020 · 3 comments
Closed

How do the unit tests run? #342

NetAppBlueDevil opened this issue Nov 4, 2020 · 3 comments

Comments

@NetAppBlueDevil
Copy link

I have user plugins that I cannot directly contribute here, but I would like to follow the pattern for being able to implement the unit tests I see here. I see that you are using the Spock framework. Is there a simple example build file pattern that is available that I could utilize if I just want to set up a basic /test folder alongside my existing plugins ?

@DarthFennec
Copy link
Contributor

First of all, apologies, this is a bit messy and suboptimal.

Internally, we use a custom framework called Lilypad to develop and run these tests. It's a Gradle project with specialized tasks for creating and using test environments. I'd like to just link that to you, but it's not currently publicly available. Probably the next best thing is artifactory-user-plugins-devenv, which is the project Lilypad is meant to replace, so they're partially inter-compatible (Lilypad supports more features, but if you don't use those features they can both run the same tests).

This should be fine for something simple like what you're looking for, but note that we stopped updating/supporting this project in mid 2017, so there's no guarantee it'll work as-is. You might need to do some tweaking if you run into problems.

If you have any issues, let me know, and I'll try to help if I can.

@NetAppBlueDevil
Copy link
Author

NetAppBlueDevil commented Nov 4, 2020 via email

@arturo-aparicio
Copy link
Contributor

Duplicate of #293

@arturo-aparicio arturo-aparicio marked this as a duplicate of #293 Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants