[
https://issues.apache.org/jira/browse/SUREFIRE-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906938#comment-17906938
]
mikael petterson edited comment on SUREFIRE-2271 at 12/19/24 6:45 AM:
----------------------------------------------------------------------
[~elharo] this is what I have done:
1. mvn verify
2. I get some failing tests.
{noformat}
[INFO] managed-objects-bundle ............................. SUCCESS [ 7.015 s]
[INFO] performance-management ............................. SUCCESS [ 3.115 s]
[INFO] jcat-commonlibrary-netconf ......................... FAILURE [07:34 min]
[INFO] netconf ............................................ SKIPPED
[INFO] managed-objects .................................... SKIPPED{noformat}
3. For the fail-safe:
netconf\jcat_commonlibrary_netconf\target\failsafe-reports\failsafe-summary.xml
It only contains information about:
<?xml version="1.0" encoding="UTF-8"?>
<failsafe-summary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/failsafe-summary.xsd"
result="255" timeout="false">
<completed>14</completed>
<errors>0</errors>
<failures>2</failures>
<skipped>0</skipped>
<failureMessage xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</failsafe-summary>
Not very helpful. No names. No stacktraces..
This is the only info I get and no information
For the surefire I can see something similar (running mvn test)
netconf\jcat_commonlibrary_netconf\target\surefire-reports\testng-junit-results
netconf\jcat_commonlibrary_netconf\target\surefire-reports\testng-native-results
There we can get extensive reports.
Since our *IT.java integration tests use TestNG would it not be possible to
get the same report for the fail-safe plugin as well?
was (Author: eraonel):
[~elharo] this is what I have done:
1. mvn verify
2. I get some failing tests.
{noformat}
[INFO] managed-objects-bundle ............................. SUCCESS [ 7.015 s]
[INFO] performance-management ............................. SUCCESS [ 3.115 s]
[INFO] jcat-commonlibrary-netconf ......................... FAILURE [07:34 min]
[INFO] netconf ............................................ SKIPPED
[INFO] managed-objects .................................... SKIPPED{noformat}
3. For the fail-safe:
netconf\jcat_commonlibrary_netconf\target\failsafe-reports\failsafe-summary.xml
This is the only info I get and no information
For the surefire I can see something similar (running mvn test)
netconf\jcat_commonlibrary_netconf\target\surefire-reports\testng-junit-results
> No logs from testcases visible when running integration tests
> --------------------------------------------------------------
>
> Key: SUREFIRE-2271
> URL: https://issues.apache.org/jira/browse/SUREFIRE-2271
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Failsafe Plugin
> Affects Versions: 3.5.0
> Reporter: mikael petterson
> Priority: Major
> Fix For: waiting-for-feedback
>
> Attachments: maven-failsafe-plugin_log.txt
>
>
> Hi,
> I am running our integration tests with the failsafe plugin using:
> mvn clean verify
> I can see that logging messages ( slf4j + log4j2) for the unit tests (
> testng) is present in the console. Then when it comes to the integration
> tests I don't see any output at all until a test fails, then I see the error
> message.
> I have log4j2-test.xml files located in the maven modules.
> I attach logs when running:
> mvn -X failsafe:integration-test
> //mikael
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)