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

Limit Controls Generated During Debug #24

Closed
georgedias opened this issue Apr 3, 2023 · 1 comment
Closed

Limit Controls Generated During Debug #24

georgedias opened this issue Apr 3, 2023 · 1 comment

Comments

@georgedias
Copy link
Contributor

When debug testing the controls (/test/tests/control.spec.ts), all controls are generated based on the contents of the cookstyle-controls-profile.json, to prevent we can only generate the files being tested by modifying the fs.writeFileSync with this code:

    const allKeys =[ ...TEST_USE_CASES.keys() ];
    if (allKeys.includes(control.id)) {
      fs.writeFileSync(path.join('test/sample_data/', 'controls-test-results', `${control.id}.rb`), control.toRuby(true))
    }
@georgedias
Copy link
Contributor Author

Fixed by PR #45

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