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

Starlark Configuration Testing #48

Closed
fkorotkov opened this issue Aug 25, 2020 · 2 comments
Closed

Starlark Configuration Testing #48

fkorotkov opened this issue Aug 25, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@fkorotkov
Copy link
Contributor

fkorotkov commented Aug 25, 2020

Since Starlark is a real language we need to figure out a testing scenario for .cirrus.star file. Ideally there should be a way to provide environment variables and see what kind of YAML config Starlark will output.

Should it be a part of validate command? How to mock file system access?

Creating this issue to brainstorm possible options.

My main use case can be described like that: we'll have github.com/cirrus-templates/node template that will generate either yarn specific or npm specific tasks depending on files in the repository. How can we test this template?

@fkorotkov fkorotkov added the enhancement New feature or request label Aug 25, 2020
@edigaryev
Copy link
Contributor

@fkorotkov isn't this a duplicate of already resolved #95?

@fkorotkov
Copy link
Contributor Author

Yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants