Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.
This repository was archived by the owner on May 2, 2025. It is now read-only.

Add Simplified Testing Setup Using Configuration File #2

@jrg94

Description

@jrg94

Is your feature request related to a problem? Please describe.

We talked about this in the past, but we shouldn't have to edit three different files every time we wanted to add a new project. Specifically, it would be awesome if there was a way to add testing directly into the .glotter.yml file. Then, the runner.py and individual pytest files could be generated dynamically.

Describe the solution you'd like

See above!

Describe how this would look for clients integrating with Glotter (if applicable).

projects:
    removeallwhitespace:
        words:
            - "bubble"
            - "sort"
        requires_parameters: true
        tests:
            valid:
                - nospaces:
                    input: "RemoveAllSpaces"
                    output: "RemoveAllSpaces"
            invalid:
                - noinput:
                    input: ""
                    output: "Usage: please provide a string" 

This would probably be very quickly overwhelming, so maybe a folder like tests where there is one of these for each project? In other words, keep the glotter config as-is, but repurpose the tests directory to contain only YAML files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions