Skip to content

move test code that connects to a db into separate module #233

Closed
@SingingBush

Description

@SingingBush

I've started a branch (SingingBush : pipeline/integration_testing) to move some of the testing out of the main source.

The code I want to do away with is

  • source/app.d
  • source/mysql/test/*.d

Those source files are all running tests against a MySQL instance, they pulling into a separate test project. I also see the existing examples directory as being pointless. it's used as a test and it's not particularly good as an example anyway.

In my branch I've got a tests/ directory as so:

tests/
    source/app.d   <-- covers same stuff that `source/app.d` and `examples/homePage/example.d` used to have
    dub.sdl        <-- has x2 configurations, one of which uses vibe 
    docker-compose.yml   <-- allows user to locally spin up MySQL in same way that the CI will
    README.md

It will need some more work to get all the test scenarios from source/mysql/test/regression.d moved across. I'll raise a merge request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions