Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@AfterEach not running #13

Closed
bvisin opened this issue Oct 1, 2018 · 0 comments
Closed

@AfterEach not running #13

bvisin opened this issue Oct 1, 2018 · 0 comments

Comments

@bvisin
Copy link
Contributor

bvisin commented Oct 1, 2018

May be user error, but I do not see @AfterEach running

'@TestSuite [RBSA] Rooibos before after tests

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'@It tests
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

'@BeforeEach
function RBSA__BeforeEach() as void
	? "!!! Before"
end function


'@AfterEach
function RBSA__AfterEach() as void
    ? "!!! After"
end function

'@Only
'@Test before after
function RBSA__before_after() as void

    assertResult = m.Fail("reason")

    isFail = m.currentResult.isFail
    m.currentResult.Reset()

    m.AssertFalse(assertResult)
    m.AssertTrue(isFail)
end function
[main] RunUserInterface
Starting test using test scene with name TestsSceneTestsScene
#########################################################################
#TEST START : ###UNDEFINED_TEST_ID###
Loading test config from default location : pkg:/source/tests/testconfig.json
!!! Before

[START TEST REPORT]

[RBSA] Rooibos before after tests (pkg:/source/tests/BeforeAfterTest.brs(1))
 |-tests
 | |--before after : ............................................................Success        pkg:/source/tests/BeforeAfterTest.brs(20)
 |


[END TEST REPORT]

Total  = 1 ; Passed  =  1 ; Failed   =  0 ; Ignored   =  0
 Time spent:  0ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant