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

The @Test methods are not executed properly if the @Before fails #13

Open
SebastianAdams opened this issue Mar 12, 2020 · 4 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@SebastianAdams
Copy link
Contributor

If the @before fails due to an Exception for instance, the @test methods are all marked as passed, although they did not run. Either the @test methods need to be marked as skipped, or also as failed test methods.

@SebastianAdams SebastianAdams added the bug Something isn't working label Mar 12, 2020
@SebastianAdams SebastianAdams self-assigned this Mar 12, 2020
@hyyan
Copy link
Member

hyyan commented May 29, 2020

@SebastianAdams Any update on this specific issue ? You cannot imagine how important this one is.
it misses up the whole test results.

@SebastianAdams
Copy link
Contributor Author

Hi @hyyan, this issue is fixed in the latest version of the plug-in.

@hyyan
Copy link
Member

hyyan commented Jun 5, 2020

@SebastianAdams Working as expected , thanks for the update

@hyyan hyyan closed this as completed Jun 5, 2020
@hyyan
Copy link
Member

hyyan commented Jun 5, 2020

@SebastianAdams was too quick to close , this still not working for me , the following case crashes the plugin using BBj Nightly build

class public ClassTest

    rem @Before
    method public void setUp()
      throw "Error Message", 256
    methodend

    rem @Test
    method public void someTest()
      Assert.Equals(1 , 1)
    methodend

    rem @After
    method public void tearDown()
        rem #Instance! = null()
    methodend

classend

@hyyan hyyan reopened this Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants