Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):
def props_eq(props1, props2):
props1 = list(props1)
time: time concumed by the test suite
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):
def props_eq(props1, props2):
time: time concumed by the test suite
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):
def props_eq(props1, props2):
name: test suite name
hostname: name of the test machine
time: time concumed by the test suite
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):
name: test suite name
hostname: name of the test machine
time: time concumed by the test suite
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):
hostname: name of the test machine
time: time concumed by the test suite
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):
def props_eq(props1, props2):
props1 = list(props1)
def __set__(self, instance, value):
if not isinstance(value, int):
raise TypeError("Expected integer value.")
super(IntAttr, self).__set__(instance, value)
def __get__(self, instance, cls):
result = super(IntAttr, self).__get__(instance, cls)
if result is None and (
isinstance(instance, JUnitXml) or isinstance(instance, TestSuite)
):
instance.update_statistics()
result = super(IntAttr, self).__get__(instance, cls)
return int(result) if result else None
hostname: name of the test machine
time: time concumed by the test suite
timestamp: when the test was run
tests: total number of tests
failures: number of failed tests
errors: number of cases with errors
skipped: number of skipped cases
"""
_tag = "testsuite"
name = Attr()
hostname = Attr()
time = FloatAttr()
timestamp = Attr()
tests = IntAttr()
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
def __init__(self, name=None):
super(TestSuite, self).__init__(self._tag)
self.name = name
self.filepath = None
def __iter__(self):
return super(TestSuite, self).iterchildren(TestCase)
def __len__(self):
return len(list(self.__iter__()))
def __eq__(self, other):