You may skip this section if you’re not interested in contributing to Ogmios.

🔧 Unit Tests

First, make sure to pull and update git submodules:

$ git submodule update --init

Then, simply use cabal as follows:

$ cabal test all

💨 Smoke Tests

Run the whole components stack using docker-compose as follows:

$ docker-compose up

Assuming the default configuration, Ogmios should be listening on :1337. Make sure that cardano-node is up-and-running and has finished its bootstraping phase (Ogmios should no longer print any warnings about HealthFailedToConnect). Then, open your favorite browser and visit http://localhost:1337/tests.html.

To tear down, press CTRL+C and then run:

$ docker-compose down