Skip to content
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

test and fix the gitlab reporter #2484

Conversation

baronfel
Copy link
Contributor

@baronfel baronfel commented Mar 6, 2020

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.

Copy link
Member

@matthid matthid left a comment

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?

@@ -172,32 +172,33 @@ module GitLab =
member x.LogSectionName =
sprintf "%s_%s" (x.Type.Trim()) (x.Name.Trim())

type Writer = bool -> System.ConsoleColor -> bool -> string -> unit
Copy link
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?

@@ -214,9 +215,10 @@ module GitLab =
write false color true (sprintf "Build Number: %s" number)
| TraceData.TestStatus (test, status) ->
write false color true (sprintf "Test '%s' status: %A" test status)

let currentTicks () =
Copy link
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 () =

@matthid matthid mentioned this pull request Mar 7, 2020
3 tasks
@matthid matthid merged commit fd2c3ee into fsprojects:release/next Mar 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.

2 participants