CollaboratingPlatypus / PetaPoco

Official PetaPoco, A tiny ORM-ish thing for your POCO's
Other
2.07k stars 600 forks source link

Integration tests #476

Open asherber opened 5 years ago

asherber commented 5 years ago

I see that there's a wiki page with information about integration tests for this library. @pleb Can you add some information about how to set up our machines to run these tests?

pleb commented 5 years ago

@asherber sure. I'll jot a few things down now, and promise to add better docs soon.

Required software

Docker for windows

Instructions to run integration tests

  1. Start the test SQL databases by running docker compose
    // Note: the first run will take awhile, as it needs to download all the docker images. 
    // Future runs, after the initial download, should be very fast.

    // From the root of the PetaPoco source folder, run

    Powershell/Dos: docker-compose.exe -f docker-compose.yml up

image

  1. Running the integration tests

I normally don't run all the providers, as access, sql ce and sqlite can be a pain in the ass. The other providers seem to work well.

The Jetbrains test explorer is my go-to pick. As it seems to handle the .net standard vs full framework better.

Using the R# test explorer (My favourite)

image

Using the built-in test explorer

image

pleb commented 5 years ago

Let me know if you need more info

asherber commented 5 years ago

Thanks, it was mostly the docker setup I wasn't sure about.