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

Notification

Icon
Error

Tests Not DIsplayed
CoolBreeze
#1 Posted : Thursday, November 19, 2020 5:28:57 PM(UTC)
Rank: Advanced Member

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

Was thanked: 8 time(s) in 8 post(s)
Different VS Solution from my previous problem about Metrics Not Showing.

Solution has three projects:
* Main VB code project.
* Test project with two test code files.
* Test project with .ASPX forms for testing UI controls.

All three projects successfully build.

I have Show Passing Tests and Show Failing Tests selected.

If I change a TestCase value NCrunch appears to automatically run
the test and briefly shows tests structure in Tests window.

Then those tests disappear.

I've done a Reset.
I've run the Configuration Wizard.
I have tests set to run automatically.
I see Metrics values as expected.

When I add a Description with a syntax error:

<Test("Description:="Zip_Validator")> ' The first " in front of Description is the syntax error.

NCrunch automatically tries to rebuild the test project, encounters an error, shows the test tree structure with red B icon
for build error. Then the tree structure disappears.

If I correct the syntax error NCrunch rebuilds the Tests project, appears to run the test,
and then the tree structure disappears.

NCrunch: 4.4.0.12
Visual Studio: 2019.
Remco
#2 Posted : Thursday, November 19, 2020 11:22:42 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 807 times
Was thanked: 1065 time(s) in 1012 post(s)
Hi, thanks for sharing this problem.

Could you submit a bug report after the test disappears? The log file may yield some useful information.

When the test disappears from the Tests Window, do its coverage markers also disappear from the source code?
CoolBreeze
#3 Posted : Friday, November 20, 2020 7:49:51 PM(UTC)
Rank: Advanced Member

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

Was thanked: 8 time(s) in 8 post(s)
I submitted the Bug Report.

re: When the test disappears from the Tests Window, do its coverage markers also disappear from the source code?

I'm testing a ASP.NET custom validator:

I created a simple method in the custom validator under test:
Public Sub Test()
Dim Debug As Boolean

Debug = True
End Sub

I created a simple test:
Public Class Test_Validator
Inherits Custom_Validator

Public Sub Test_2()
Me.Test()
End Sub

As usual the test runs, NCrunch displays the test tree structure in the
Tests window briefly, and then the tree structure disappears.

I see green code coverage markers in Test and Test_2.

Btw: I had a set of three class libraries with Nunit tests.
While working on those libraries NCrunch showed the
tests tree structure as expected.

For better or worse, I was asked to copy the libraries
into a new Visual Solution.

In the new solution the tests tree structure appears
and then disappears.

I'm wondering if I've setup something a little
different from the original libraries to the
new version.
CoolBreeze
#4 Posted : Friday, November 20, 2020 7:54:27 PM(UTC)
Rank: Advanced Member

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

Was thanked: 8 time(s) in 8 post(s)
Also, I put in:

Debug.WriteLine("Test1") into Test_2. See previous Reply.

NCrunch automatically runs the test.

I don't see "Test1" in the Trace Output window.

Maybe that's b\c I can't select the test that just ran in the tests tree structure.

Ed
CoolBreeze
#5 Posted : Friday, November 20, 2020 8:07:36 PM(UTC)
Rank: Advanced Member

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

Was thanked: 8 time(s) in 8 post(s)
I solved my problem.

Maybe I have some visual dyslexia or something.

Even though I've used NCrunch for years I've always
been confused by the Show Passing Tests
and Show Failing Tests icons.

Those two icons are shown in two locations:
1) the dropdown list when one clicks on the down arrow in the Tests window.
2) the search popup dialog.

I selected the two icons in the drop down list and thought: "Yes, that
should show the passing\failing tests." But enabling\disabling those two icons
only shows\or doesn't show the icons in the Search popup.

What I didn't realize is that I have to ALSO enable\click on those
two icons in the Search popup.

Once I enabled the two icons in the Search popup then I saw
the Tests tree structure.

I think the other visual confusion for me is:

Does the white background on the icon mean "enabled" or "disabled".

Ed
Remco
#6 Posted : Friday, November 20, 2020 11:36:31 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 807 times
Was thanked: 1065 time(s) in 1012 post(s)
Thanks for confirming you've solved this, and for your explanation of the problem. From a UX perspective, it's useful to know this. I'm glad you're up and running again.
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.041 seconds.