Skip to content

Testing infrastructure#16

Closed
DavidBoike wants to merge 21 commits intomainfrom
testing
Closed

Testing infrastructure#16
DavidBoike wants to merge 21 commits intomainfrom
testing

Conversation

@DavidBoike
Copy link
Member

No description provided.

@DavidBoike DavidBoike marked this pull request as ready for review February 17, 2026 17:56
@andreasohlund
Copy link
Member

andreasohlund commented Feb 17, 2026 via email

Copy link
Contributor

@danielmarbach danielmarbach left a comment

Choose a reason for hiding this comment

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

I think this looks like an approach we can use to have a few real functions we use to test that everything works properly. It might be beneficial to use something like Microsoft.Extensions.Http and a small DI container / ServiceCollection to simplify wiring of the Http Client and some other things we can "improve" but I like this as a prototype. I have a few more questions / thoughts I'll bring up internally


public static ExceptionInfo[] GetErrors()
{
while (collectedExceptions.Count > 20)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we only propagate the last twenty?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only so that it doesn't grow out of control and make it difficult to download an over-large JSON blob. Picked a random number. 🤷

}
}

public static ExceptionInfo[] GetErrors()
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, why not https://learn.microsoft.com/en-us/dotnet/api/system.runtime.exceptionservices.exceptiondispatchinfo? Is it because we want to serialize and we do not care about capturing the exception and freeze the stack trace?

Copy link
Member Author

Choose a reason for hiding this comment

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

I only care about seeing the app exceptions in the test output to be able to diagnose issues.

@danielmarbach
Copy link
Contributor

Needs a rebase. After that this seems good to go. Since we decided to only have a few of those tests it is probably not worth investing more time in polishing it.

@DavidBoike
Copy link
Member Author

Replaced by #31 due to merge conflict issues

@DavidBoike DavidBoike closed this Mar 10, 2026
@DavidBoike DavidBoike deleted the testing branch March 10, 2026 18:55
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