Skip to content

Conversation

@LeoColman
Copy link
Member

No description provided.

@LeoColman LeoColman enabled auto-merge (squash) November 18, 2025 23:11
@krzema12
Copy link
Member

Hi @LeoColman! What's the motivation here? Are you planning to make some adjustments to the logic under test? I'm asking because I think we have good coverage of this part through the end-to-end tests (although I'd have to check when I'm by my laptop). For now just wanted to learn what triggered this PR 😁

@krzema12
Copy link
Member

Ah, see it on Slack now, thanks!

class ActionCoordsTest :
FunSpec(
{
test("extractActionCoords parses owner/name with version and no path, FULL by default") {
Copy link
Member

Choose a reason for hiding this comment

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

How about using context("extractActionCoords"), in case we need to add tests for some other function? Then we could remove the function name from individual test cases.

test("extractActionCoords parses owner/name with version and no path, FULL by default") {
val parameters = createParameters(owner = "o", name = "act", version = "v1")

parameters.extractActionCoords(true) shouldBe
Copy link
Member

Choose a reason for hiding this comment

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

In every test, let's used named arguments - extractActionCoords(true) doesn't look readable.

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.

3 participants