does anyone have any examples of spek in a MASSIVE...
# spek
s
does anyone have any examples of spek in a MASSIVE project? I'm just wondering how well spek converts from small open-source projects to a project with hundreds of thousands of lines of code.
a
Jenkins shows that we have 28K+ tests, only a couple of JUnit tests. Obviously it is not open source đŸ™‚
s
dang 28k is a lot. any way you could post one test class? obfuscated or something? just wondering how tests are structured, `it`s, etc.
a
If you want real world projects, there are some of ours. https://github.com/gojuno/composer https://github.com/gojuno/swarmer https://github.com/gojuno/commander Not a perfect representation, but it will do. Also, there is a talk I gave (no video, sorry). https://speakerdeck.com/arturdryomov/kotlin-max-payne-bkug-july-2017
s
awesome! exactly what I was looking for. These are great. Quick question, where is this
perform
method coming from? https://github.com/gojuno/composer/blob/master/composer/src/test/kotlin/com/gojuno/composer/InstrumentationSpec.kt#L18
a
It’s just an alias for
beforeEachTest
.
s
ah haha.
a
It’s just to be more declarative,
beforeEachTest
sounds too imperative
s
gotcha