Skip to content

Unit testing #278

Open
Open

Description

@PySimpleSQL

As we get closer to moving to code cleanup, I'd like to start adding some unit tests.

I would prefer to use pytest rather than unittest.

Activity

  1. ssweber commented on Apr 13, 2023

    @ssweber
    Collaborator

    Yes, I'd love this. I've never created a test-suite before.

    If you create a few, I'll start helping out.

  2. added 2 commits that reference this issue on Apr 13, 2023
  3. PySimpleSQL commented on Apr 13, 2023

    @PySimpleSQL
    OwnerAuthor

    I think in the long run, any push or merge into master should have a hook to run all unit tests. I'm not sure if we need that level of protection for development, but it's definitely open for discussion

    The SQLDriver unit tests will be a monster by the time they are done, including spooling up of docker. I would imagine these tests will end up taking over a minute or so by the time they are done

  4. ssweber commented on Apr 13, 2023

    @ssweber
    Collaborator

    It'll be a huge improvement from current by-hand testing all the different database examples via forms.

    To test dependent handling we'll probably want a testing database/form/docker images that has dependents. Do you have a preference on a sample database? Create our own, or use use Northwind, AdventureWorks, Chinook?

  5. PySimpleSQL commented on Apr 13, 2023

    @PySimpleSQL
    OwnerAuthor
  6. PySimpleSQL commented on Apr 13, 2023

    @PySimpleSQL
    OwnerAuthor
  7. added 7 commits that reference this issue on Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions