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 the test runner will throw an error when the unittest class has no test methods #2

Open
hyyan opened this issue Feb 26, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hyyan
Copy link
Member

hyyan commented Feb 26, 2020

BBj Class Example

use ::BBjGridExWidget/BBjGridExWidgetFilters.bbj::BBjGridExWidgetColumnFilterAG
use com.google.gson.JsonObject

class public BBjGridExWidgetColumnFilterAGTest

    field private BBjGridExWidgetColumnFilterAG Instance!
    
    rem @Before
    method public void setUp()
        #Instance!  = new BBjGridExWidgetColumnFilterAG()
    methodend
    
    rem @After
    method public void tearDown()
        #Instance! = null()
    methodend

classend

Run the test, you get the following error

!ERROR=252  (com.basis.bbjutilities.bbjunittest.exceptions.BBjUnitTestClassParsi
ngException: null)
[57]                      #core!.setMissingFiles(list!)
@hyyan
Copy link
Member Author

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 Author

hyyan commented Jun 5, 2020

@SebastianAdams was too quick to close. the following stills failing for me in BBj Nightly build but with a different error.

class public ClassTest

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

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

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

classend
!ERROR=252  (com.basis.bbjutilities.bbjunittest.exceptions.BBjUnitTestClassParsi
ngException: null)
[46]             #core!.setBBjUnitTestFiles(#fileList!)

@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