You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vladimir Vlasov (JIRA)" <ji...@codehaus.org> on 2011/11/11 13:39:51 UTC
[jira] Created: (SUREFIRE-787) Test fail cause message is badly
displayed if exception message conatins line feeds
Test fail cause message is badly displayed if exception message conatins line feeds
-----------------------------------------------------------------------------------
Key: SUREFIRE-787
URL: https://jira.codehaus.org/browse/SUREFIRE-787
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 2.10
Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
Reporter: Vladimir Vlasov
I receive th following message when my test fail
Results :
Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (SUREFIRE-787) Test fail cause message is badly
displayed if exception message conatins line feeds
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-787.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.11
Assignee: Kristian Rosenvold
This is the intended behaviour, the one-line summaries truncate newlines. To make this clearer I added (..) after truncated messages in r1202865. To see the full messages you need to look at the build result files.
> Test fail cause message is badly displayed if exception message conatins line feeds
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-787
> URL: https://jira.codehaus.org/browse/SUREFIRE-787
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.10
> Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
> Reporter: Vladimir Vlasov
> Assignee: Kristian Rosenvold
> Fix For: 2.11
>
>
> I receive th following message when my test fail
> Results :
> Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-787) Test fail cause message is badly
displayed if exception message conatins line feeds
Posted by "Vladimir Vlasov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283276#comment-283276 ]
Vladimir Vlasov commented on SUREFIRE-787:
------------------------------------------
Oh, accidentally clicked Enter... I'll finish description here.
While error message is formatted by the following sequence:
throw new ClientException(
"Timeout while waiting for system to be complied to expected condition:\r\nFlags:"
+ expectedClientState.flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString()
+ "\r\n"
+ expectedClientState.incomingStanzasToString()
+ "\nCurrent set of states:\r\nFlags:"
+ getState().flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString());
> Test fail cause message is badly displayed if exception message conatins line feeds
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-787
> URL: https://jira.codehaus.org/browse/SUREFIRE-787
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.10
> Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
> Reporter: Vladimir Vlasov
>
> I receive th following message when my test fail
> Results :
> Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-787) Test fail cause message is badly
displayed if exception message conatins line feeds
Posted by "Vladimir Vlasov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283676#comment-283676 ]
Vladimir Vlasov commented on SUREFIRE-787:
------------------------------------------
Ok, thanks.
> Test fail cause message is badly displayed if exception message conatins line feeds
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-787
> URL: https://jira.codehaus.org/browse/SUREFIRE-787
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.10
> Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
> Reporter: Vladimir Vlasov
> Assignee: Kristian Rosenvold
> Fix For: 2.11
>
>
> I receive th following message when my test fail
> Results :
> Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (SUREFIRE-787) Test fail cause message is badly
displayed if exception message conatins line feeds
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-787.
---------------------------------------
Resolution: Fixed
Historically, there has been *nothing* regarding the reason for the failure. For the last few versions, it has been tweaked to give this "overview" effect; it's an overview, and it might even be trimmed to not contain the first whole line.
If you want to request your desired behaviour as a new feature, go ahead. But it is not a bug.
> Test fail cause message is badly displayed if exception message conatins line feeds
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-787
> URL: https://jira.codehaus.org/browse/SUREFIRE-787
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.10
> Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
> Reporter: Vladimir Vlasov
> Assignee: Kristian Rosenvold
> Fix For: 2.11
>
>
> I receive th following message when my test fail
> Results :
> Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (SUREFIRE-787) Test fail cause message
is badly displayed if exception message conatins line feeds
Posted by "Vladimir Vlasov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283276#comment-283276 ]
Vladimir Vlasov edited comment on SUREFIRE-787 at 11/11/11 6:44 AM:
--------------------------------------------------------------------
Oh, accidentally clicked Enter... I'll finish description here.
While error message is formatted by the following sequence:
throw new ClientException(
"Timeout while waiting for system to be complied to expected condition:\r\nFlags:"
+ expectedClientState.flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString()
+ "\r\n"
+ expectedClientState.incomingStanzasToString()
+ "\nCurrent set of states:\r\nFlags:"
+ getState().flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString());
This does not happen if I run tests simply using testng.jar lib.
was (Author: endarkened):
Oh, accidentally clicked Enter... I'll finish description here.
While error message is formatted by the following sequence:
throw new ClientException(
"Timeout while waiting for system to be complied to expected condition:\r\nFlags:"
+ expectedClientState.flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString()
+ "\r\n"
+ expectedClientState.incomingStanzasToString()
+ "\nCurrent set of states:\r\nFlags:"
+ getState().flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString());
> Test fail cause message is badly displayed if exception message conatins line feeds
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-787
> URL: https://jira.codehaus.org/browse/SUREFIRE-787
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.10
> Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
> Reporter: Vladimir Vlasov
>
> I receive th following message when my test fail
> Results :
> Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (SUREFIRE-787) Test fail cause message is badly
displayed if exception message conatins line feeds
Posted by "Vladimir Vlasov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Vlasov reopened SUREFIRE-787:
--------------------------------------
As far as I understand, this was made to truncate stack trace output in the results, right? Why don't you let user decide, if he wants to see multi-sting messages or not by defining it in <configuration/>?
> Test fail cause message is badly displayed if exception message conatins line feeds
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-787
> URL: https://jira.codehaus.org/browse/SUREFIRE-787
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.10
> Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
> Reporter: Vladimir Vlasov
> Assignee: Kristian Rosenvold
> Fix For: 2.11
>
>
> I receive th following message when my test fail
> Results :
> Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (SUREFIRE-787) Test fail cause message
is badly displayed if exception message conatins line feeds
Posted by "Vladimir Vlasov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283276#comment-283276 ]
Vladimir Vlasov edited comment on SUREFIRE-787 at 11/11/11 6:44 AM:
--------------------------------------------------------------------
Oh, accidentally clicked Enter... I'll finish description here.
While error message is formatted by the following sequence:
throw new ClientException(
"Timeout while waiting for system to be complied to expected condition:\r\nFlags:"
+ expectedClientState.flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString()
+ "\r\n"
+ expectedClientState.incomingStanzasToString()
+ "\nCurrent set of states:\r\nFlags:"
+ getState().flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString());
This does not happen if I run tests simply using testng.jar lib - message is being written just fine.
was (Author: endarkened):
Oh, accidentally clicked Enter... I'll finish description here.
While error message is formatted by the following sequence:
throw new ClientException(
"Timeout while waiting for system to be complied to expected condition:\r\nFlags:"
+ expectedClientState.flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString()
+ "\r\n"
+ expectedClientState.incomingStanzasToString()
+ "\nCurrent set of states:\r\nFlags:"
+ getState().flagsToString()
+ "\r\nRoster:"
+ expectedClientState.rosterToString());
This does not happen if I run tests simply using testng.jar lib.
> Test fail cause message is badly displayed if exception message conatins line feeds
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-787
> URL: https://jira.codehaus.org/browse/SUREFIRE-787
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.10
> Environment: Win XP SP3, Java 1.6.0_27, assembly executed with Maven 3.0.3
> Reporter: Vladimir Vlasov
>
> I receive th following message when my test fail
> Results :
> Failed tests: subscribeTo(gateway.unregistered.SendMessageToContact): Timeout while waiting for system to be complied to expected condition:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira