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

Notification

Icon
Error

NCrunch Runs About 8 of 183 Tests
CoolBreeze
#1 Posted : Tuesday, March 29, 2016 12:56:06 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/11/2014(UTC)
Posts: 79
Location: United States of America

Was thanked: 9 time(s) in 9 post(s)
My test has 183 tests cases. Each test calls a function which calls SQL query with two parameters. The SQL query looks up records based on the two input parameters and returns 0 or more records.

NCrunch runs usually about 8 of the 183 tests and then stops.

The 8 tests are successful with green check marks on the left-side of the test case row in NCrunch Tests window.

NCrunch show blue question mark, up arrow and upside down exclamation mark for the remaining test case rows.
NCrunch shows under status column for the un-executed tests "pending; prioritized; impacted"
NCrunch show blue N icon in lower right-hand corner of VS. When I mouse over it show message "NCrunch engine is idle".

I ran the test several times with the same results. Usually about 8 tests completed with the remaining pending.

I don't see any other error messages.

I thought the test might be timing out. I put two Timeout attributes on the test:

<NCrunch.Framework.Timeout(1000 * 60 * 30)>
<Timeout(1000 * 60 * 30)>

I put the NCrunch TimeoutAttribute in my test project (hopefully translated from C# to VB correctly):


Public Class TimeoutAttribute
Inherits System.Attribute

Private _properties As IDictionary

Public Sub New(timeout As Integer)
_properties = New Hashtable()
_properties("Timeout") = timeout
End Sub

Public ReadOnly Property Properties As IDictionary
Get
Return _properties
End Get
End Property

End Class

The test cases are generated using a factory function.

I created unique names for these test cases using a base class like this:

Public Class TEST_LIB_Base
Private m_Description As String = ""

Public Sub New(Description As String)
m_Description = Description
End Sub

Public Overrides Function ToString() As String
Return m_Description

End Function
End Class

The only error I see in the NCrunch tests Windows is:

"This project contains multiple NUnit tests that share the same name."

That error is referring another\different set of test cases not related to the test cases I'm talking about above.

NCrunch 2.19.04






Remco
#2 Posted : Tuesday, March 29, 2016 10:24:46 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi, thanks for sharing this issue.

When it appears, could you check the contents of the processing queue? I'm wondering if there are any pending test tasks still in the queue, or whether it's been cleared somehow.

v2.19 does have some known issues around certain change patterns clearing out the queue and hanging the engine. It might be worth upgrading to v2.20 to see if this solves the problem.
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.034 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download