-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
It's high time to introduce some consistency :) #147
Comments
@bartoszmajsak Would you be interested in converting one of the existing tests to use Spock so show the difference? |
@aslakknutsen I can contribute new tests written in Spock (eg. JPA stuff). Does it sound good enough? |
@bartoszmajsak sure, that'll work too |
Works for me too. This could be a starting point. |
+1 for AssertJ. |
+1 for spock. This is great learning opportunity with Spock but if we are looking for a wider adoption and participation it might get things more messy. Additionally if this is a learning exercise for other I think we should leave this as simple as possible, putting JEE sample + tests as understandable for an average programmer as possible. |
Personally I don't see as a big challenge to grasp Spock. Especially if you know just a bit of unit testing. And at the end of the day the more you learn the better. But I leave it open. |
I really like the "hidden agenda" :-) |
Just do a couple of tests using Spock and then people can decide. Regarding naming conventions for the test methods, option 3 doesn't feel java to me, but if everyone wants to change it, let's go for it. I do have some additional points about consistency:
|
Sure, I will throw in some stuff very soon. With regards to "does not feel java"... I had the same feeling initially, but c'mon, thisIsJustAConventionToImproveReadabilityOfLongAndOverTalkativeMethodNames :) ofCourseIfWeUseSpockThisWontBeAProblemAnymoreBecauseYouWillNameItDifferently. Now that was java ;) Checkstyle +1 |
No copyright is needed on new files. The top-level LICENSE file says: "Except where otherwise indicated, everything in this repository is licensed under the MIT license" so we are ok. Checkstyle +1 Do you want to start adding some of these guidelines at http://javaee-samples.github.io/ ? |
Ok, so we might need to review the license headers if they are still relevant in the source files. |
yep, sounds reasonable. You and Aslak can drive the website content ? |
I can only speak for myself ;) I'm in. |
Aslak created it, now you can drive it :-) |
Working on a extension to extract test results from the Jenkins jobs and categorizing the test cases |
@arun-gupta Any chance to get the whole thing relicensed under one license? |
Would love to, let me find out if that's possible. What would be the benefit ? |
@arun-gupta one license to deal with. Not 3.. But beyond just making it simpler, not much.. :) |
Let me see what can be done now that everything is moved to a separate github organization. |
#147 Extended README with some contribution guidelines.
@bartoszmajsak I withdraw my Spock comment :) And when any tests are picked I got "Multiple TestRunners found, only one allowed. Check your classpath". Any progress since this discussion? Or splitting execution is the only way to go? I'm referring to these two commits: 517773c and 792c784. Any clue? What am I missing? |
Hey, By default surefire does not treat *Specification as tests to run. You need HTH
|
Not much :/ Adding Specification to surefire doesn't help - already tried. Means I'll have to fiddle a bit with the pom file ad this splitting On Sunday, December 29, 2013, Bartosz Majsak wrote:
|
Have a look at spock-arquillian module and its examples. Maybe it will shed Sorry for being that brief, but replying from mobile is a bit challenging Cheers,
|
I've started with that one as an example. I suppose mixing junit and spock On Sunday, December 29, 2013, Bartosz Majsak wrote:
|
That is probably a problem. Will have a look once close to my laptop :-)
|
Execution was the problem. Separated executions in same phase but different files and worked (069af04) |
Hi guys,
I've been looking at the tests we have so far and I spotted few things which I believe we should address any time soon to avoid confusion in the future.
That said, I would be happy to help in converting/unifying our code base. Let's just agree on sth instead of putting more freestyle code here and there.
The text was updated successfully, but these errors were encountered: