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

Add Simplified Testing Setup Using Configuration File #2

Open
jrg94 opened this issue May 13, 2022 · 0 comments
Open

Add Simplified Testing Setup Using Configuration File #2

jrg94 opened this issue May 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jrg94
Copy link
Contributor

jrg94 commented May 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant