This is very helpful. I haven’t heard anything about Spock before, but this looks very interesting to try to incorporate into our development process.
@tylersharpe3600
3 жыл бұрын
Thanks Trisha. We've been using spock as our primary testing framework at work for years now, but I still learned some new things from this video (particularly the verifyAll() API and multi-cursor feature)!
@CarlMarcum
3 жыл бұрын
Thanks ! This was a great introduction to Spock.
@intellijidea
3 жыл бұрын
Glad you liked it!
@brianjohnsen3992
3 жыл бұрын
Absolutely brilliant! I've been using (and teaching) Spock for years, and your video is beautifully precise and to the point. One itsy bitsy thing: at 32:15 you reintroduce the renderer (line 98) in the verifyAll-block, but since it has the same name as the variable (line 89) it will only assert that the variable is equal to itself. IDEA actually recognises that by highliting renderer.
@TrishaGee
3 жыл бұрын
Yes!! Someone spotted the error! I didn't introduce it on purpose, I noticed it after I finished the screencast and published the code. But I was waiting to see who would spot it first. You win!
@DJMightyChip
3 жыл бұрын
Oh my gods, Spock is still going strong?! Excellent. Hands down, my favourite testing framework. JUnit is trustworthy and dependable... but Spock lets you write tests in an intelligible way. Even non-technical people can understand many of these tests.
@wmv1990
2 жыл бұрын
If you are not able to view separately every test case run for a Data table or Data pipe created for a test method. Please add annotation @Unroll on top of the test method, so that feature gets activated for you by spock. This feature by default is present in newer spock versions but not in old ones. Thanks for the superb video!
@Greatfulone
3 жыл бұрын
I love some of the features like access to private fields, and the creating parametrized tests a lot easier. I feel my Groovy project is a bit slower in compiling and running then Maven. I don't have the fastest pc, but it is current. Oh, and thank you for content. It was exactly what I need to start and some more to work on for future.
@mayurravindra9433
2 жыл бұрын
Simply loved the tutorial! Very useful even to experienced devs. Kudos👍
@davidhsv2
3 жыл бұрын
This is great, way better than junit giant method names. Thank you for showing that
@intellijidea
3 жыл бұрын
Glad you like it!
@cvetkovicslobodan
Жыл бұрын
Amazing presentation...nice job 👍
@Greatfulone
2 жыл бұрын
Thank you so much for the content. Can you do a follow up on debugging the unit tests. It seems like debugging and setting break points need a bit more code.
@sergiopuccini
2 жыл бұрын
Great video. Saved my ass at new job :) Thanks!
@mohsinraza3913
3 жыл бұрын
Great video (y) had this feeling right from the start :)
@axelbrugger9944
Жыл бұрын
Nice. But you forgot to mention that when you first opened the Java project, you were showing the build.gradle file instead of the 'src' folder (there was bno way to see that you had the build.gradle file open)
@fabasoad
3 жыл бұрын
Haven't heard about Spock before. I would like to try it in a real world project.
@shankarsg1405
3 жыл бұрын
Thank you for the video 😊
@mikeCavalle
3 жыл бұрын
what a great tutorial -- regards
@intellijidea
3 жыл бұрын
Many thanks!
3 жыл бұрын
Great presentation! Is there a way to annotate, it some other trick for the setup/cleanup methods to indicate they're part of spock? Right now IntelliJ gray them out like they're never called.
@TrishaGee
3 жыл бұрын
Hmmm, interesting, IntelliJ IDEA should recognise them as test methods. Which version of IntelliJ IDEA are you using?
3 жыл бұрын
@@TrishaGee I'm on the latest and greatest 2020.3.1(Ultimate) but it's always been that way. It doesn't recognize any of the setup/cleanup methods as part of the spock infrastructure. They are all considered never called and grayed out.
@TheGuroguro12
2 жыл бұрын
thank u
@ankxy1
3 жыл бұрын
thanks this helps a lot
@intellijidea
3 жыл бұрын
Glad it helped
@shawnmofid7131
3 жыл бұрын
How does Spock work with CI/CD? Does it work like Junit and maven sure fire?
@SharebookBR
Жыл бұрын
Excelent. Thanks!
@m1k0register
2 жыл бұрын
How to add more moving parts to a project? Swap JUnit for Spock ;)
@StephanStan
3 жыл бұрын
To complete the tutorial - I need to add module that includes awt.Polygon, Using Openjdk11.
@TrishaGee
3 жыл бұрын
You shouldn't have to, it shouldn't require any awt. You need to create a brand new Polygon class. See the code here: github.com/trishagee/spock-testing-demo/
@StephanStan
3 жыл бұрын
@@TrishaGee Thank you.
@TheMateuszNH
2 жыл бұрын
is there some other good materials ? This one is very good but doesn't help writing hard tests.
@cya3mdirl158
3 жыл бұрын
Please add better formatting support test method.
@TrishaGee
3 жыл бұрын
Please feel free to request improvements/new features in the issue tracker: youtrack.jetbrains.com/issues/idea
@郭牧野
Жыл бұрын
建议添加spring spock的使用章节
@momos2899
3 жыл бұрын
is there a code Competition in java
@cya3mdirl158
3 жыл бұрын
We are waiting for Spock 2.0...
@davidwidner8258
2 жыл бұрын
Could not create the "polygon" object :\
@tharakakushan
2 жыл бұрын
Polygon Has been created as concreate class inside the code base, the code base git link attached to the description also. Good Luck! @Neo.
@asit2303
3 жыл бұрын
😂
@strekozuka
Жыл бұрын
Hi, I have 'CannotCreateMockException' error and can't solve it. I'm doing everything for the tutorial. How does it solve?
Пікірлер: 50