jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Sonar .NET Ecosystem
  • Sonar .NET Ecosystem
  • SONARDOTNT-107

Test cases are not displayed

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.5
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Drilldown to test cases does not work propery. The "Tests" panel remains empty.
This is annoying especially for project where there are test failures.

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. SONARDOTNT-135 .Net test details are not displayed

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Alexandre Victoor added a comment - 28/Nov/10 8:47 AM

Below an example of the "test details" XML produced by the sensor :

<tests-details>
	<testcase status="SUCCESS" time="110" name="BagMultiply" />
	<testcase status="SUCCESS" time="1" name="BagNegate" />
	<testcase status="SUCCESS" time="4" name="BagSimpleAdd" />
	<testcase status="SUCCESS" time="2" name="BagSubtract" />
	<testcase status="SUCCESS" time="1" name="BagSumAdd" />
	<testcase status="SUCCESS" time="1" name="IsZero" />
	<testcase status="SUCCESS" time="1" name="MixedSimpleAdd" />
	<testcase status="SUCCESS" time="2" name="MoneyBagEquals" />
	<testcase status="SUCCESS" time="6" name="MoneyBagHash" />
	<testcase status="SUCCESS" time="1" name="MoneyEquals" />
	<testcase status="SUCCESS" time="7" name="MoneyHash" />
	<testcase status="SUCCESS" time="1" name="Normalize" />
	<testcase status="SUCCESS" time="2" name="Normalize2" />
	<testcase status="SUCCESS" time="1" name="Normalize3" />
	<testcase status="SUCCESS" time="1" name="Normalize4" />
	<testcase status="SUCCESS" time="3" name="Print" />
	<testcase status="SUCCESS" time="2" name="SimpleAdd" />
	<testcase status="SUCCESS" time="1" name="SimpleBagAdd" />
	<testcase status="SUCCESS" time="1" name="SimpleMultiply" />
	<testcase status="SUCCESS" time="1" name="SimpleNegate" />
	<testcase status="SUCCESS" time="1" name="SimpleSubtract" />
</tests-details>
Show
Alexandre Victoor added a comment - 28/Nov/10 8:47 AM Below an example of the "test details" XML produced by the sensor : <tests-details> <testcase status= "SUCCESS" time= "110" name= "BagMultiply" /> <testcase status= "SUCCESS" time= "1" name= "BagNegate" /> <testcase status= "SUCCESS" time= "4" name= "BagSimpleAdd" /> <testcase status= "SUCCESS" time= "2" name= "BagSubtract" /> <testcase status= "SUCCESS" time= "1" name= "BagSumAdd" /> <testcase status= "SUCCESS" time= "1" name= "IsZero" /> <testcase status= "SUCCESS" time= "1" name= "MixedSimpleAdd" /> <testcase status= "SUCCESS" time= "2" name= "MoneyBagEquals" /> <testcase status= "SUCCESS" time= "6" name= "MoneyBagHash" /> <testcase status= "SUCCESS" time= "1" name= "MoneyEquals" /> <testcase status= "SUCCESS" time= "7" name= "MoneyHash" /> <testcase status= "SUCCESS" time= "1" name= "Normalize" /> <testcase status= "SUCCESS" time= "2" name= "Normalize2" /> <testcase status= "SUCCESS" time= "1" name= "Normalize3" /> <testcase status= "SUCCESS" time= "1" name= "Normalize4" /> <testcase status= "SUCCESS" time= "3" name= "Print" /> <testcase status= "SUCCESS" time= "2" name= "SimpleAdd" /> <testcase status= "SUCCESS" time= "1" name= "SimpleBagAdd" /> <testcase status= "SUCCESS" time= "1" name= "SimpleMultiply" /> <testcase status= "SUCCESS" time= "1" name= "SimpleNegate" /> <testcase status= "SUCCESS" time= "1" name= "SimpleSubtract" /> </tests-details>
Hide
Permalink
Freddy Mallet added a comment - 30/Nov/10 8:24 AM

Hello Alexandre, looks like the problem comes from the value of the status field. Sonar expects to get "ok", "error", "failure" or "skipped".

Show
Freddy Mallet added a comment - 30/Nov/10 8:24 AM Hello Alexandre, looks like the problem comes from the value of the status field. Sonar expects to get "ok", "error", "failure" or "skipped".
Hide
Permalink
Alexandre Victoor added a comment - 30/Nov/10 8:46 AM

great !
I will change the status and test that asap.
Thanks Freddy

Show
Alexandre Victoor added a comment - 30/Nov/10 8:46 AM great ! I will change the status and test that asap. Thanks Freddy
Hide
Permalink
Alexandre Victoor added a comment - 30/Nov/10 4:53 PM

Freddy you were right.
I have noticed another issue on the encoding of error data and stacktraces. It should not be too hard to solve.

Show
Alexandre Victoor added a comment - 30/Nov/10 4:53 PM Freddy you were right. I have noticed another issue on the encoding of error data and stacktraces. It should not be too hard to solve.
Hide
Permalink
Alexandre Victoor added a comment - 01/Dec/10 4:12 PM

XML characters are escaped, "new line" characters are removed from error messages, extra attribute "assert number" is no longer present... it works fine now

Show
Alexandre Victoor added a comment - 01/Dec/10 4:12 PM XML characters are escaped, "new line" characters are removed from error messages, extra attribute "assert number" is no longer present... it works fine now
Hide
Permalink
Maxime Schneider-Dufeutrelle added a comment - 11/Feb/11 11:10 AM

I checked it and it actually works fine.

Show
Maxime Schneider-Dufeutrelle added a comment - 11/Feb/11 11:10 AM I checked it and it actually works fine.

People

  • Assignee:
    Freddy Mallet
    Reporter:
    Alexandre Victoor
Vote (1)
Watch (0)

Dates

  • Created:
    27/Aug/10 10:15 AM
    Updated:
    12/Oct/12 7:16 AM
    Resolved:
    01/Dec/10 4:12 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.