Question

How do you get a stacktrace and debug logging when running SpecFlow tests on Appharbor?

The tests run but the only output I get is:

Status: Failed

Duration: 00:00:00.0312002

Message
TestFixtureSetUp failed in AdvertisementFeature

When I run it locally I get full stack trace and logging. I don't do any config file conversion at appharbor.

Was it helpful?

Solution

To see the full stacktrace for a SpecFlow test you will have to view the parent stacktrace, as SpecFlow log the stacktrace there. As for now the easiest way to view a parent test is to change the url to the parent url, by removing the last number, like in this example:

Failed test url: https://appharbor.com/applications/{applicationName}/builds/{buildId}/tests/1.1.2

Parent test url: https://appharbor.com/applications/{applicationName}/builds/{buildId}/tests/1.1

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top