Skip to content

Pervasively use the Logger in tests - #2340

Merged
lamont-granquist merged 1 commit into
devfrom
lcg/remove-test-logging-boilerplate
Oct 7, 2026
Merged

lamont-granquist merged 1 commit into
devfrom
lcg/remove-test-logging-boilerplate

Conversation

@lamont-granquist

Copy link
Copy Markdown
Collaborator

Eliminates the need for boilerplate to do logging/printing in all the tests. Just use Logger.Print()/DebugPrint() in either MJ code or test code uniformly and it should just work.

Since we're pretty well stuck on xUnit 2, the TestInitialization.cs code just got real ugly. Since xUnit 2 is perfectly stable at this point, that shouldn't incur any maintenance costs.

Eliminates the need for boilerplate to do logging/printing in all the
tests.  Just use Logger.Print()/DebugPrint() in either MJ code or test
code uniformly and it should just work.

Since we're pretty well stuck on xUnit 2, the TestInitialization.cs code
just got real ugly.  Since xUnit 2 is perfectly stable at this point,
that shouldn't incur any maintenance costs.
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-532190f.zip (built from efcd82e)

@lamont-granquist
lamont-granquist merged commit 929f079 into dev Oct 7, 2026
3 checks passed
@lamont-granquist
lamont-granquist deleted the lcg/remove-test-logging-boilerplate branch October 7, 2026 01:05
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.

1 participant