hhariri
hhariri
simon.vergauwen
09/27/2016, 12:31 PMcontext
to ambiguous. But if some1 really finds that keyword useful he could just create an alias with an extension function on Dsl, no?bob
09/27/2016, 12:32 PMhhariri
hhariri
simon.vergauwen
09/27/2016, 1:00 PMThe main reason for removing it is that it’s leading to confusion and most scenarios could actually be covered without it.
simon.vergauwen
09/27/2016, 1:01 PMnstewart
09/27/2016, 1:02 PMgiven
. But as long as the team has agreed on which to use, I don’t see how it’s confusingsimon.vergauwen
09/27/2016, 1:03 PMcontext
. I’d be fine with just having describe
like Jasmine or Cedar 2.simon.vergauwen
09/27/2016, 1:03 PMbeforeEach
conversation we had yd 😂nstewart
09/27/2016, 1:03 PMcontext
- because coming from RSpec it seems like the right choicesimon.vergauwen
09/27/2016, 1:04 PMsimon.vergauwen
09/27/2016, 1:05 PMcontext
when you come from RSpec like @nstewart mentionedhhariri
hhariri
hhariri
simon.vergauwen
09/27/2016, 2:35 PMI don’t see what context could be used for that a given or describe can’t.
And when you give people too many options to do the same thing, IMHO it adds complexity and reduces discoverability.
simon.vergauwen
09/27/2016, 2:35 PMSpek already has two styles - the original given/on/it, which for instance I personally use, and the describe Mocha/Jasmine style.
simon.vergauwen
09/27/2016, 2:36 PMsimon.vergauwen
09/27/2016, 2:38 PMdescribe
and add a section in the documentation or on the first page. For the people coming from RSpec, Jasmine, Cedar or Mocha you can easily adapt Spek to the syntax your used to.
inline fun Dsl.describe(description: String, crossinline body: Dsl.() -> Unit) = group("describe $description", body = body)
simon.vergauwen
09/27/2016, 2:40 PMhhariri
simon.vergauwen
09/27/2016, 2:42 PMsimon.vergauwen
09/27/2016, 2:47 PMhhariri
hhariri
michaelbannister
09/27/2016, 5:33 PM@RunWith(JUnitPlatform.class)
– according to the JUnit 5 docs this is a JUnit 4 test runner.michaelbannister
09/27/2016, 5:34 PMmichaelbannister
09/27/2016, 5:34 PM