Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Upgrade cucumber#64

Merged
fourlastor merged 5 commits intomasterfrom
upgrade-cucumber
Mar 21, 2020
Merged

Upgrade cucumber#64
fourlastor merged 5 commits intomasterfrom
upgrade-cucumber

Conversation

@tasomaniac
Copy link
Copy Markdown
Collaborator

Fixes #48

@tasomaniac tasomaniac changed the base branch from master to little-versions-clean-up March 21, 2020 13:38
import gherkin.ast.TableCell
import gherkin.ast.TableRow

internal fun Examples.toScenarios(outline: ScenarioOutline): List<Scenario> {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version of Cucumber is doing this Example to Scenario conversion during runtime.

I copied from old version. Thanks to Kotlin, it is pretty straight-forward.

Copy link
Copy Markdown
Owner

@fourlastor fourlastor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, only one minor nitpick! Great work 🙏

}

private fun ScenarioOutline.createExampleScenario(header: TableRow, example: TableRow): Scenario {
return Scenario(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quick return? I should put a linter

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project uses old Kotlin style which has 8 spaces indentation. I did quick return but it looked kind of ugly.

We should migrate to official style guide with 4 spaces.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I'll change this in the future!

@tasomaniac tasomaniac changed the base branch from little-versions-clean-up to master March 21, 2020 14:36
@fourlastor fourlastor merged commit c5d7f5c into master Mar 21, 2020
@fourlastor fourlastor deleted the upgrade-cucumber branch March 21, 2020 15:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support new annotations from Cucumber 4.5.0

2 participants