Repository 'tool_factory_2'
hg clone https://toolshed.g2.bx.psu.edu/repos/fubar/tool_factory_2

Changeset 78:89aca6c67405 (2020-11-17)
Previous changeset 77:1fa49a9a4ec5 (2020-11-16) Next changeset 79:2d0272e730d1 (2020-11-17)
Commit message:
Uploaded
modified:
toolfactory/rgToolFactory2.py
b
diff -r 1fa49a9a4ec5 -r 89aca6c67405 toolfactory/rgToolFactory2.py
--- a/toolfactory/rgToolFactory2.py Mon Nov 16 23:24:05 2020 +0000
+++ b/toolfactory/rgToolFactory2.py Tue Nov 17 06:04:40 2020 +0000
[
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+
 # rgToolFactory.py
 # see https://github.com/fubar2/toolfactory
 #
@@ -882,6 +882,7 @@
         planemo test --engine docker_galaxy --database_type docker_postgres --galaxy_root /galaxy-central pyrevpos/pyrevpos.xml
         """
         xreal = "%s.xml" % self.tool_name
+        tool_test_path = os.path.join(self.repdir,f"{self.tool_name}_planemo_test_report.html")
         if os.path.exists(self.tlog):
             tout = open(self.tlog, "a")
         else:
@@ -891,25 +892,30 @@
             cll = [
                 "planemo",
                 "test",
+                "--test_output_xunit",os.path.join(self.repdir,f"{self.tool_name}_xunit.xml")
+                "--test_data", os.path.abspath(self.testdir),
+                "--test_output", os.path.abspath(tool_test_path),
                 "--galaxy_root",
                 self.args.galaxy_root,
                 "--update_test_data",
-                xreal,
+                os.path.abspath(xreal),
             ]
             p = subprocess.run(
                 cll,
                 shell=False,
                 cwd=self.tooloutdir,
-                stderr=dummy,
-                stdout=dummy,
+                stderr=tout,
+                stdout=tout,
             )
         else:
             cll = [
                 "planemo",
                 "test",
+                "--test_data", self.testdir,
+                "--test_output", tool_test_path,
                 "--galaxy_root",
                 self.args.galaxy_root,
-                xreal,
+                os.path.abspath(xreal),
             ]
             p = subprocess.run(
                 cll, shell=False, cwd=self.tooloutdir, stderr=tout, stdout=tout