PentiaLabs / generator-helix

Generate Helix compliant solutions with Yeoman.
MIT License
40 stars 22 forks source link

Add test project when creating a new module (optional) #101

Closed patelcp closed 5 years ago

patelcp commented 7 years ago

User story

As a developer, I want the generator to create the test project when adding a new module so that I don't have to manually go back and add one in visual studio.

Expected behavior

  1. provide option to create a test project when adding a new module
  2. create a blank test project

Actual behavior

No test projects are created currently

Saturate commented 7 years ago

Seems like a really great idea, if anyone if up for it feel free to make a pull-request!

patelcp commented 7 years ago

@Saturate I'll take this on and will find some time next week to work on it.

TakeitEasyAlan commented 5 years ago

Hi @patelcp

You can achieve this by extending the "add generator": https://github.com/PentiaLabs/generator-helix#extending-the-add-generator

The strategy for test projects varies from Sitecore partner to Sitecore partner: some put all tests into a single project, some split them into one project per "src-project", some add one project per layer, some do it based on user journeys (i.e. e2e-tests) - it's so diverse that I think it's out of scope to provide a built in template.