Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Two TargetFrameworks doubles TestCount?
Advisto
#1 Posted : Tuesday, November 26, 2019 3:14:48 PM(UTC)
Rank: Member

Groups: Registered
Joined: 10/15/2018(UTC)
Posts: 11
Location: Netherlands

Was thanked: 2 time(s) in 2 post(s)
Hi,

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


My test-project, with a direct reference to the business-project, has a single targetframework:
Code:
<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?
Remco
#2 Posted : Tuesday, November 26, 2019 10:18:41 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
Advisto
#3 Posted : Wednesday, November 27, 2019 5:46:53 AM(UTC)
Rank: Member

Groups: Registered
Joined: 10/15/2018(UTC)
Posts: 11
Location: Netherlands

Was thanked: 2 time(s) in 2 post(s)
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!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.046 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download