Commit d169100041c974c81631cb3d04a8382d595f3a2c

Authored by Jürgen Knödlseder
2 parents 01104dca 78e161af

Merge branch 'integration' into devel

Showing 1 changed file with 3 additions and 6 deletions
src/test/GTestSuites.cpp
1 1 /***************************************************************************
2 2 * GTestSuites.cpp - Test suite container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2018 by Jean-Baptiste Cayrou *
  4 + * copyright (C) 2012-2021 by Jean-Baptiste Cayrou *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -628,7 +628,6 @@ void GTestSuites::write(GXml& xml) const
628 628 GXmlElement* element_testsuite = testsuites->append("testsuite");
629 629  
630 630 // Set attributes
631   - element_testsuite->attribute("disabled",""); // not used
632 631 element_testsuite->attribute("errors",gammalib::str(testsuite->errors()));
633 632 element_testsuite->attribute("failures",gammalib::str(testsuite->failures()));
634 633 element_testsuite->attribute("hostname",""); // not used
... ... @@ -637,7 +636,7 @@ void GTestSuites::write(GXml& xml) const
637 636 element_testsuite->attribute("package",""); // not used
638 637 element_testsuite->attribute("skipped",""); // not used
639 638 element_testsuite->attribute("tests",gammalib::str(testsuite->size()));
640   - element_testsuite->attribute("time",gammalib::str(testsuite->duration()));
  639 + element_testsuite->attribute("time",gammalib::str(testsuite->duration(), 3));
641 640 element_testsuite->attribute("timestamp",gammalib::str(testsuite->timestamp()));
642 641  
643 642 // Loop over all test cases in the test suite
... ... @@ -650,11 +649,9 @@ void GTestSuites::write(GXml& xml) const
650 649 GXmlElement* element_testcase = element_testsuite->append("testcase");
651 650  
652 651 // Set attributes
653   - element_testcase->attribute("assertions",""); // not used
654 652 element_testcase->attribute("classname",name());
655 653 element_testcase->attribute("name",testcase.name());
656   - element_testcase->attribute("status",""); // not used
657   - element_testcase->attribute("time",gammalib::str(testcase.duration()));
  654 + element_testcase->attribute("time",gammalib::str(testcase.duration(), 3));
658 655  
659 656 // If a failure or error occured then append the message to the
660 657 // XML element.
... ...