RegressionTests__SunitXMLOutputTest.st
author sr
Fri, 13 Oct 2017 17:03:19 +0200
changeset 1841 c17fef15c434
parent 1447 2351db93aa5b
child 1567 e17701a073f9
permissions -rw-r--r--
#REFACTORING by sr class: RegressionTests::ImageReaderTest removed: #packageDirectory comment/format in: #test_png_01 changed:19 methods

"{ Package: 'stx:goodies/regression' }"

"{ NameSpace: RegressionTests }"

TestCase subclass:#SunitXMLOutputTest
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'tests-Regression'
!

!SunitXMLOutputTest class methodsFor:'documentation'!

documentation
"
    consists of failing (by purpose) tests,
    to see if the backtrace and exception reporting works
    if sUnit results are rendered in xml and then presented by jenkins
"
! !

!SunitXMLOutputTest methodsFor:'testing'!

test01_shouldBeOK_01
    self assert:true.

    "
     self new test01_shouldBeOK_01
    "
!

test02_shouldBeOK_02
    self should:[ self error ] raise:Error

    "
     self new test02_shouldBeOK_02
    "
!

test03_shouldError_01
    self error.

    "
     self new test03_shouldError_01
    "
!

test04_shouldError_02
    self error:'this is an error message'.

    "
     self new test04_shouldError_02
    "
!

test05_shouldError_03
    |d|

    d := 0.
    Transcript showCR:'expect a division by zero error soon...'.
    Transcript showCR:(5 / d).

    "
     self new test05_shouldError_03
    "
!

test06_shouldFail
    self assert:false.

    "
     self new test06_shouldFail
    "
! !

!SunitXMLOutputTest class methodsFor:'documentation'!

version
    ^ '$Header$'
!

version_CVS
    ^ '$Header$'
! !