Re:Minimal APIs at a glance in .NET 6
by Jenk on Monday September 13, 2021 @01:18PM
(#28514063)
Unit testing and integration testing are not mutually exclusive. I use both. I also want the feedback from tests/build of what I am developing to be as immediate as possible. Failing early with a test that takes a second to spool and run with a message like "expected File got Content" or whatever is more valuable than waiting for a much longer test for the same (or more obscure due to depth of stack that will need a debug session) message.
TL;DR: Running an entire webstack to test trivial things is waste.
> Just use testserver, itβs just a few lines of c# Code.
Orthoganol metric is orthoganol.
await Task.Delay(TimeSpan.FromHours(1));
Is just one line of c#. Doesn't meant it's going to run any quicker.
TL;DR: Running an entire webstack to test trivial things is waste.
> Just use testserver, itβs just a few lines of c# Code.
Orthoganol metric is orthoganol.
Is just one line of c#. Doesn't meant it's going to run any quicker.