shekharpro / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Could not generate reports #465

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I added two assemblies (also tried to add only one)
2. Run tests (all successful)
3. Tried to generate Report as XHtml-Condensed (failed)
4. Tried other types (also failed)
5. Restarted Gallio Icarus and tried many times (same result)

What is the expected output? What do you see instead?
Could not get a report. I got an exception.

What version of the product are you using? On what operating system?
3.0.6 build 763

Please provide any additional information below.

Original issue reported on code.google.com by waheedsayed on 1 Jun 2009 at 4:50

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm, that's an interesting one! Could you please attach the xml report that 
you're
generating from?

Original comment by grahamr...@gmail.com on 1 Jun 2009 at 9:07

GoogleCodeExporter commented 9 years ago
I've seen this before and have an open issue to pre-filter test output before 
writing
it into the report.  XML does not allow certain characters to be represented.

To work around this issue, try to find a test that might be writing binary 
output
directly into the test log.  If you open up the XML file then it should be easy
enough to spot the stray U+000E character in there and you'll see which test it
belongs to.

Likely culprit: A test that does something like
TestLog.WriteLine(Encoding.UTF8.GetString(arrayOfBytes));

Of course the real bug remains in that it makes no sense for us to store 
unprintable
or invalid-for-XML characters in the report so we should strip them out early.

Original comment by jeff.br...@gmail.com on 1 Jun 2009 at 10:09

GoogleCodeExporter commented 9 years ago
I'll try to deal with this in the v3.0.7 timeframe.

Original comment by jeff.br...@gmail.com on 1 Jun 2009 at 10:10

GoogleCodeExporter commented 9 years ago
I think the problem that my test result contains words in Arabic language.
Since that my application is Bilingual with Arabic/English support.
I've generated and attached an XML report. 
Sure, on my machine Arabic words looks fine in XML file, but I don't know how 
it will 
be for you.

Original comment by waheedsayed on 2 Jun 2009 at 8:33

Attachments:

GoogleCodeExporter commented 9 years ago
I downloaded the recent binaries you pointed to (build 787).
I tried the same and got the same result.

Original comment by waheedsayed on 2 Jun 2009 at 8:36

GoogleCodeExporter commented 9 years ago
The Arabic words came through just fine on my end so it's likely that Gallio is 
using
the correct Unicode encodings end-to-end.  I went through a few months ago to 
make
sure of this (but I might still have missed something!).

However I did find some very strange characters spanning multiple code pages in 
the
output of HashingFixture.CanHashString.  It looks like the test is writing out 
raw
bytes to the Console.

Original comment by jeff.br...@gmail.com on 2 Jun 2009 at 5:37

GoogleCodeExporter commented 9 years ago
You are exactly right. This is the test & method that prevents report 
generation.

The point those strange characters are print of the resulting hashed string to 
console. By commenting, the following line I can generate test report:
Console.WriteLine("Test Value: [{0}] Hashed Value: [{1}]", input, hashed);

Is there another way to print hashed string to console & generate the report?

Original comment by waheedsayed on 3 Jun 2009 at 10:52

GoogleCodeExporter commented 9 years ago
You might consider printing the hashed string as hex.  It's not really going to 
be
readable otherwise as some of the characters in the hashed string are not 
printable.

Original comment by jeff.br...@gmail.com on 3 Jun 2009 at 4:50

GoogleCodeExporter commented 9 years ago

Original comment by jeff.br...@gmail.com on 29 Jun 2009 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by jeff.br...@gmail.com on 18 Jul 2009 at 5:12