I´m trying to display the sql statements of nhibernate from my XUnit 2.x unittests in the Resharper Output of the Unit Test Sessions, but it does log the sql statements.
With MSpec Tests there is no issue and the sql statements are shown. With XUnit 1.x I think the sql statements were also logged.
I have configured NHibernate via property show_sql
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="show_sql">true</property>
</session-factory>
</hibernate-configuration>
There was a change in XUnit 2 how output is captured, but I not sure how to combine this with NHibernate to log the sql statements.
So has anyone a solution for this? I´m trying to avoid log4net integration in my unittests only to log these statements.
XUnit 2.1, NHibernate 4.0, ReSharper 2016.3.1, Visual Studio 2013