Skip to content

test and fix the gitlab reporter - #2484

Merged
matthid merged 1 commit into
fsprojects:release/nextfrom
baronfel:gitlab-reporter-fixed-for-real-hopefully
Mar 7, 2020
Merged

matthid merged 1 commit into
fsprojects:release/nextfrom
baronfel:gitlab-reporter-fixed-for-real-hopefully

Conversation

@baronfel

@baronfel baronfel commented Mar 6, 2020

Copy link
Copy Markdown
Contributor

Description

Puts the gitlab trace writer under tests and establishes that it does in fact write the log messages expected by the documentation on gitlab.

The problem before was the console escape sequences were not being escaped in the format strings, so .Net was applying the for us.

@matthid matthid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some nitpicks.

So I assume this resolves #2482 and I can stop reverting the PRs?

member x.LogSectionName =
sprintf "%s_%s" (x.Type.Trim()) (x.Name.Trim())

type Writer = bool -> System.ConsoleColor -> bool -> string -> unit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should those aliases be internal?

| TraceData.TestStatus (test, status) ->
write false color true (sprintf "Test '%s' status: %A" test status)

let currentTicks () =

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
let currentTicks () =
let internal currentTicks () =

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.

2 participants