···3131 case to the `squirrel/internal/query.gleam_type_to_field_type` function.
3232 This is used when the type is in the values returned by the query to
3333 write down the type of the corresponding field
3434-- And don't forget to add some tests :)
3434+- And don't forget to add some tests and integration tests :)
35353636## Writing tests
3737···4646 that it is easier to focus on a specific aspect of the code when reviewing it
4747- Use a long descriptive title for the snapshots: a title should describe what
4848 one expects to see in the produced snapshot to guide the review process
4949+5050+## Integration tests
5151+5252+Squirrel also has some integration tests to check that the generated code
5353+actually compiles and produces the expected results.
5454+5555+- To add a new integration test you can add a new item to the
5656+ `integration_tests` list in `test/integration_test.gleam`
5757+- To run the tests you can run the `./integration_test` script in this project.
5858+ Read below to set up all the required bits for tests to work
49595060## Running the tests
5161···55655666- In CI this is taken care of automatically
5767- Locally you have two options:
5858- - Use Docker Compose: the project comes with a `docker-compose.yaml` file that sets up
5959- the instance, so you can run `docker compose up` to start it and run your tests
6060- - Manually set up a Postgres server: you'll have to make sure you have a server running
6161- with a user called `squirrel_test` that must be able to read and write to a database
6262- called `squirrel_test`6868+ - Use Docker Compose: the project comes with a `docker-compose.yaml` file that
6969+ sets up the instance, so you can run `docker compose up` to start it and run
7070+ your tests
7171+ - Manually set up a Postgres server: you'll have to make sure you have a
7272+ server running with a user called `squirrel_test` that must be able to read
7373+ and write to a database called `squirrel_test`