Scaffold generator does not generate stories or tests

After generating several scaffolds for our app, I noticed that it generates very little testing and no stories. The only test that gets generated is for the api service. I know when you generate the individual items, they generate both stories and tests.

My issue is that this sets an undesirable pattern for those using the scaffolding generator.

  1. Short term: Is there a way to backfill these tests without manually creating them?
  2. Long term: Is there a plan to have the scaffolding create these missing items?

I can think of two ways to fix this for the long term:

  1. Add the missing files into the scaffolding templates and generation system.
  2. Change the scaffolding system to use the individual generator templates to generate scaffolding.

Personally I like option #2, but I would assume that is much more work. It would be nice so the templates aren’t duplicated and exist in one place. It would also be nice when a developer overrides the built in templates with their own.

1 Like