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

How to start testing of test files in Brightscript Roku project, Please guide #221

Open
hemaliluhar opened this issue Apr 19, 2023 · 0 comments

Comments

@hemaliluhar
Copy link

In my bright script project, following the steps as mention in document , created one test file name Simple.brs

`@suite("basic tests")
function TestSuit__Simple()
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@Describe("tests the node context is available for a Node scope function")
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

end function
@it("does something in node scope")
function TestCase__Simple()
m.assertNotInvalid(m.node)
m.assertInvalid(m._isNodeScopeVarSet)
m.assertTrue(m.node._isNodeScopeVarSet)
end function`

I tried to run command npm run build-tests

npx bsc

[02:12:42:7460 PM] Using config file: "/Users/Desktop/PROJECTS/bsconfig.json"
[02:12:42:7560 PM] Loading 1 plugins for cwd "/Users/Desktop/PROJECTS"
[02:12:42:8720 PM] Parsing files
[02:12:43:0540 PM] Parsing files finished. (181.959ms)
[02:12:43:0550 PM] Validating project
[02:12:43:1530 PM] Validating project finished. (97.687ms)
[02:12:43:1640 PM] Copying to staging directory
[02:12:43:2040 PM] Copying to staging directory finished. (39.625ms)
[02:12:43:2040 PM] Transpiling
[02:12:43:4690 PM] Transpiling finished. (264.397ms)

Now anyone has any idea how to run test files?

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