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

tests.BaseTestSuite - setup not getting called when using @SGNode #204

Open
waaadim opened this issue Dec 20, 2022 · 0 comments
Open

tests.BaseTestSuite - setup not getting called when using @SGNode #204

waaadim opened this issue Dec 20, 2022 · 0 comments

Comments

@waaadim
Copy link

waaadim commented Dec 20, 2022

Not sure if it's caused by @only because without it I'm getting this error

namespace tests
    @only
    @SGNode("GqlTask")
    @suite
    class GqlTaskTests extends tests.BaseTestSuite
        @describe("runGqlTask")
        @it("calls the success/finish callbacks when the task succeeds")
        function _()
            m.assertEqual(true, true)
        end function
    end class
end namespace

BaseTestSuite

namespace tests
    class BaseTestSuite extends rooibos.BaseTestSuite
        private appController

        protected override function setup()
            ? "### BaseTestSuite init"
            m.global.addFields({
                "rooibosInitSetupBug": false
            })
        end function
    end class
end namespace

GqlTask - the node I want to test

sub init()
    m.top.functionName = "execute"
    ? "### test" type(m.global.rooibosInitSetupBug)

Output

Starting test using test scene with name TestsSceneTestsScene
scene is ready; running tests now

> SUITE: GqlTaskTests>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 +++++RUNNING NODE TEST
 node type is GqlTaskTests
### testInvalid
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