Skip to content

junghoon-vans/testcontainers-meilisearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testcontainers Meilisearch

Maven Central Maintainability Rating Coverage LICENSE DockerHub

A Testcontainers implementation for Meilisearch.

How to use

You can use the @Container annotation to start a Meilisearch container.

Default image

@Container
MeilisearchContainer container = new MeilisearchContainer();

Custom image

@Container
MeilisearchContainer container = new MeilisearchContainer(DockerImageName.parse("getmeili/meilisearch:latest"));

Configure master key

@Container
MeilisearchContainer container = new MeilisearchContainer()
    .withMasterKey("masterKey");

Setup

This library is available in Maven Central. You can add it as a dependency to your project using the following snippets.

Gradle

testImplementation 'io.vanslog:testcontainers-meilisearch:1.0.5'

Maven

<dependency>
    <groupId>io.vanslog</groupId>
    <artifactId>testcontainers-meilisearch</artifactId>
    <version>1.0.5</version>
    <scope>test</scope>
</dependency>