tylermilner / cookiecutter-ios-swiftui

Cookiecutter template for jump-starting modern iOS apps using SwiftUI.
MIT License
1 stars 0 forks source link

Refactor template tests to be more isolated #18

Open tylermilner opened 6 months ago

tylermilner commented 6 months ago

Since the output of pytest is a little difficult to parse through sometimes, we should refactor the Cookiecutter template tests to be more isolated/independent so that each test is only testing one thing (e.g. Single Responsibility Principle). This should make it more obvious to more precisely know what failed based on the test name.

One possibility would be to attempt to have a test for each file that needs to be tested (e.g. MyAppApp.swift, project.yml, etc.), though there still may be some test that apply broadly across files (e.g. checking comment headers at the top of each file).