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

Support _brs_.testData #623

Closed
lkipke opened this issue Mar 5, 2021 · 0 comments
Closed

Support _brs_.testData #623

lkipke opened this issue Mar 5, 2021 · 0 comments
Labels
enhancement Any addition to this project's existing capabilities good first issue A great place for newcomers to jump in! Usually doesn't involve a deep understanding of the project

Comments

@lkipke
Copy link
Collaborator

lkipke commented Mar 5, 2021

Summary

Oftentimes when mocking components/functions, it can be helpful to use a globally-scoped (or maybe it'd be scopeless? 🤔) variable that is accessible both from the mock and the test case/suite. Since the mock runs in the source code's m scope, this isn't possible with roca's m.addContext.

Let's add a property called _brs_.testData for this purpose.

@lkipke lkipke added enhancement Any addition to this project's existing capabilities good first issue A great place for newcomers to jump in! Usually doesn't involve a deep understanding of the project labels Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any addition to this project's existing capabilities good first issue A great place for newcomers to jump in! Usually doesn't involve a deep understanding of the project
Projects
None yet
Development

No branches or pull requests

1 participant