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

Runtime error when using @SGNode #203

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

Runtime error when using @SGNode #203

waaadim opened this issue Dec 20, 2022 · 0 comments

Comments

@waaadim
Copy link

waaadim commented Dec 20, 2022

Dependecies

    "brighterscript": "0.61.2",
    "rooibos-roku": "5.3.1",
    "ts-node": "^10.9.1",
    "typescript": "^4.9.4",
    "undent": "0.1.0"

Test file

namespace tests
    @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

Error msg

 +++++RUNNING NODE TEST
 node type is GqlTaskTests
BRIGHTSCRIPT: ERROR: Runtime: func_name_resolver failed resolving '__tests_basetestsuite_builder': pkg:/source/tests/components/module/task/GqlTask.spec.brs(2)

BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.

Suspending threads...
Thread selected:  1*   .../module/task/GqlTask.spec.brs(2)     instance = __tests_BaseTestSuite_builder()

Current Function:
001:  function __tests_GqlTaskTests_builder()
002:*     instance = __tests_BaseTestSuite_builder()
003:      instance.super1_new = instance.new
004:      instance.new = sub()
004:  sub()
005:          m.super1_new()
006:      end sub
006:
Source Digest(s):
pkg:               dev 6.3.12 8c772235 QVC+ and HSN+
roku_analytics: 109022  1.4.7 533c3ca6 Roku Analytics Library

Function is not defined in component's namespace (runtime error &h91) in pkg:/source/tests/components/module/task/GqlTask.spec.brs(2)
Backtrace:
#3  Function __tests_gqltasktests_builder() As Dynamic
   file/line: pkg:/source/tests/components/module/task/GqlTask.spec.brs(2)
#2  Function tests_gqltasktests() As Dynamic
   file/line: pkg:/source/tests/components/module/task/GqlTask.spec.brs(91)
#1  Function $anon_306(nodetestname As Dynamic) As Dynamic
   file/line: pkg:/source/rooibos/TestRunner.brs(107)
#0  Function init() As Dynamic
   file/line: pkg:/components/rooibos/generated/GqlTaskTests.brs(5)
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