Ouput test duration and stack trace in TAP YAML block

Compatible with https://wiki.jenkins-ci.org/display/JENKINS/TAP+Plugin