Skip to content

Add Implicits object to help datatable transformations #61

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

Merged
merged 1 commit into from
May 22, 2020

Conversation

gaeljw
Copy link
Member

@gaeljw gaeljw commented May 22, 2020

AIms to fix #56

Import the new Implicits object and benefit from conversions methods to Scala types on the DataTable type:

import io.cucumber.scala.Implicits._

Given("the following table as List of Map") { (table: DataTable) =>
  val scalaTable: Seq[Map[String, Option[String]]] = table.asScalaMaps
  // ...
}

@gaeljw gaeljw added this to the v5.8.x milestone May 22, 2020
@gaeljw gaeljw changed the base branch from master to v5.8 May 22, 2020 13:34
@gaeljw gaeljw merged commit 8af4eb8 into v5.8 May 22, 2020
@gaeljw gaeljw deleted the scala-datatable branch May 22, 2020 13:41
@gaeljw gaeljw modified the milestones: v5.8.x, v6.0.x Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide conversion methods from DataTable to scala types
1 participant