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

create tests for actions and tasks when generating via CLI #1332

Merged
merged 4 commits into from Sep 4, 2019

Conversation

evantahler
Copy link
Member

@evantahler evantahler commented Sep 3, 2019

Completes #1005

When generating a new action or task via the CLI, a template test will also now be creates in __tests__. This will help encourage better testing of your actionhero projects. Of course, you can always delete the test files if you don't want it.

Adds api.config.general.paths.test as setting in ./config/api.js which defaults to [path.join(__dirname, '/../__tests__')]

@evantahler
Copy link
Member Author

This is a breaking change due to the new, required api.config.general.paths.test config option

@gcoonrod gcoonrod merged commit a0be681 into master Sep 4, 2019
@gcoonrod gcoonrod deleted the generated-tests branch September 4, 2019 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants