Daily Usage Issues

Two TargetFrameworks doubles TestCount?

Started by Advisto on 1,998 views

Hi,

I've a project with businesslogic, that has two target-frameworks:
<TargetFrameworks>net462;netcoreapp2.1</TargetFrameworks>


My test-project, with a direct reference to the business-project, has a single targetframework:
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>


But everytime there's a change in some core-logic, I see the counter of NCrunch doubling the total count of Tests. There are currentlly 385 tests in the project, which Ncrunch knows, because of the text 'Montitoring 385 tests'. But after doing a change in some logic dat is used by most of the tests, NCrunch says '658 tests are queued for execution'.
It seems to me that this could be simply optimized?
Hi, thanks for sharing this.

Can you confirm whether you are actually seeing the tests being duplicated inside the Tests Window under the two target frameworks, or is this just the total number that is increasing?

Note that the number of tests queued for execution can exceed the total if tests are already executing in the background when changes are made to the code and tests are re-queued.
Hi Remco,

No, the test-window doesn't show them twice.
I suppose it's in your second note, didn't think about that. Thanks!

Post a reply

Log in to reply.