-
Notifications
You must be signed in to change notification settings - Fork 472
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
Comments
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 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. |
OK. I have some basic familiarity with gradle. Let me check the Spock site and see if they have a basic example, since all I’m trying to do is execute tests with self contained mock objects. Thanks for the pointer to he devenv, I’ll check that too
From: Travis Foster <[email protected]>
Sent: Wednesday, November 4, 2020 4:07 PM
To: jfrog/artifactory-user-plugins <[email protected]>
Cc: Holmes, Daniel <[email protected]>; Author <[email protected]>
Subject: Re: [jfrog/artifactory-user-plugins] How do the unit tests run? (#342)
NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe.
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<https://github.com/jfrog/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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#342 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAR5FQGZ3EHQW2B6UPGDNSTSOG66VANCNFSM4TKHV5OA>.
|
Duplicate of #293 |
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 ?
The text was updated successfully, but these errors were encountered: