Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

✨ feat: implement scalatest integration#373

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
gaeljw wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromgh255
Draft

Conversation

gaeljw
Copy link
Member

No description provided.

@gaeljwgaeljw self-assigned thisApr 21, 2024
@gaeljwgaeljw linked an issueApr 21, 2024 that may beclosed by this pull request
@gaeljwgaeljw added ⚡ enhancementRequest for new functionality 🍼 incompleteBlocked until more information is provided labelsApr 21, 2024
@dfurmansdfurmans self-requested a reviewJune 18, 2024 20:42
options: T
): Try[RuntimeOptionsBuilder] = {
Try {
// TODO verify how getClass behaves with the trait
Copy link
Contributor

Choose a reason for hiding this comment

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

So let`s say

trait CucumberSuiteOptionstrait CucumberSuiteOptionSpf extends CucumberSuiteOptionsdef parse[T <: CucumberSuiteOptions](options: T with CucumberSuiteOptions): String = {  val clazz = options.getClass   clazz.toString}parse(new CucumberSuiteOptionSpf{}) // val res3: String = class rs$line$16$$anon$1

In Welcome to Scala 3.3.1 (17.0.2, Java OpenJDK 64-Bit Server VM).


class RunCukesTest extends CucumberSuite with CucumberSuiteOptions {

override def featuresPath: Seq[String] = Nil
Copy link
Contributor

Choose a reason for hiding this comment

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

what about Functor Option to express something that could be ... could be

parse(options) match {
case Success(value) => value
case Failure(exception) =>
println(
Copy link
Contributor

Choose a reason for hiding this comment

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

are we sure that we would like to have this print in SOUT asis ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Probably not but so far I just got inspired from the cucumber-junit module and copy/pasted stuff from there.

private val context: CucumberExecutionContext
) extends Suite {

private val children: Seq[PickleSuite] = {
Copy link
Contributor

@mpkorstanjempkorstanjeJun 18, 2024
edited
Loading

Choose a reason for hiding this comment

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

How many levels of hierarchy can Scala test express? If more than 2, it might be worthwhile to match the layout in the feature file. Representing only the feature and pickles was a JUnit 4 limitation.

gaeljw reacted with thumbs up emoji
@gaeljw
Copy link
MemberAuthor

@dfurmans@mpkorstanje this is a very first draft, I don't even remember if it compiles yet 😅 No need for a deep review for now I guess.

I don't have plans to work on it in the coming weeks, if anyone wants to take over and complete it, I'm perfectly fine with that :)

dfurmans and mpkorstanje reacted with thumbs up emoji

@mpkorstanje
Copy link
Contributor

Alright, no worries! I'm currently working on some stuff in cucumber for junit 5 that is somewhat related.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dfurmansdfurmansdfurmans left review comments

@mpkorstanjempkorstanjempkorstanje left review comments

Assignees

@gaeljwgaeljw

Labels
🍼 incompleteBlocked until more information is provided⚡ enhancementRequest for new functionality
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Provide a cucumber-scalatest integration
3 participants
@gaeljw@mpkorstanje@dfurmans

[8]ページ先頭

©2009-2025 Movatter.jp