Skip to content

Files

Latest commit

5a62a20 · Nov 13, 2024

History

History
45 lines (31 loc) · 2 KB
·

README.md

File metadata and controls

45 lines (31 loc) · 2 KB
·

Getting Started

Running unit tests in IntelliJ IDEA

To run unit tests in IntelliJ IDEA, you need to have the Kotest plugin installed.

Running integration tests

Integration tests use Testcontainers to start a PostgreSQL container. To run the tests, you need to have Docker installed on your machine. Recommended docker application: https://rancherdesktop.io/

Installing Rancher desktop

Download and install Rancher Desktop from https://rancherdesktop.io/

  • For Windows users: You may have to manually add the rancher-desktop kubernetes context to the kubectl configuration. You can find the configuration file at C:\Users\<username>\.kube\config.
  • For Mac users: You may have to manually add the binaries to PATH. To do this, run the following command:
    export PATH=$PATH:/Applications/Rancher\ Desktop.app/Contents/Resources/kubectl
  • For Mac users: If you can't run tests due to "Could not find a valid docker environment" error, you may need to run the following command ( ref https://stackoverflow.com/questions/61108655/test-container-test-cases-are-failing-due-to-could-not-find-a-valid-docker-envi):
    sudo ln -s $HOME/.rd/docker.sock /var/run/docker.sock

Reference Documentation

For further reference, please consider the following sections:

Additional Links

These additional references should also help you: