From 3abeb53600471428e93d7a522547bc57e1ef71d3 Mon Sep 17 00:00:00 2001 From: Stanislav Zubov Date: Mon, 24 Jul 2017 14:30:33 +0700 Subject: [PATCH] xunit-plugin-prints-full-path-to-report (#28) --- CHANGELOG.md | 4 ++++ lode_runner/plugins/xunit.py | 3 ++- setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41129ec..bbac021 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.1 + +- XUnit plugin now prints full path to created xUnit report + ## 0.4.0 - Add plugin Failer that allows to stop test execution after X failures/errors. diff --git a/lode_runner/plugins/xunit.py b/lode_runner/plugins/xunit.py index 87d5d8b..4b26cb0 100644 --- a/lode_runner/plugins/xunit.py +++ b/lode_runner/plugins/xunit.py @@ -1,5 +1,6 @@ # coding: utf-8 +import os import multiprocessing from xml.etree import ElementTree @@ -68,7 +69,7 @@ def report(self, stream): if self.config.verbosity > 1: stream.writeln("-" * 70) - stream.writeln("XML: %s" % self.error_report_filename) + stream.writeln("XML: {}".format(os.path.abspath(self.error_report_filename))) def beforeTest(self, test): """Initializes a timer before starting a test.""" diff --git a/setup.py b/setup.py index 486090a..ae496d8 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='lode_runner', url='https://github.com/2gis/lode_runner', - version='0.4.0', + version='0.4.1', description='Nosetests runner plugins package', long_description='', author='Igor Pavlov',