Tag: Test

Integration Tests and your Couchbase Application

Integration Tests and your Couchbase Application

Proper integration tests require a complete setup of your infrastructure. And this can be a litle hard to put in place sometimes, especially when you need to support your developer lapop, your CI node, or any other machine where you...

Testing Spring Data Couchbase Applications with TestContainers

Testing Spring Data Couchbase Applications with TestContainers

In a previous series of blog posts I explained how to use TestContainers for your Java Junit tests. Some of the issues we did not address were about how to test N1QL, create your own buckets, index etc… This post...

Configure the Official Couchbase Docker Image at Test Runtime with TestContainers

Configure the Official Couchbase Docker Image at Test Runtime with TestContainers

In the previous blog posts I explained how to use Docker containers running Couchbase during your tests. Both post had this requirements that you had to build your own Couchbase Docker image with the cluster and data already configured. In...

Create Couchbase Docker Images on the Fly with TestContainers

Create Couchbase Docker Images on the Fly with TestContainers

Yesterday I wrote about how to do unit and integration tests with Couchbase and TestContainers. One of the prerequisite for those tests was to have an image already built. Turns out you don’t have too. You can create your own...

Unit and Integration Tests with Couchbase and Docker Containers

Unit and Integration Tests with Couchbase and Docker Containers

The current state of testing with Couchbase requires you to use something like CouchbaseMock, or mock the API yourself, or have a running Couchbase Server instance started prior to running those tests. Mocking works but is not really testing Couchbase. It...

Indexes for N1QL: or how I got an order magnitude speed increase

Indexes for N1QL: or how I got an order magnitude speed increase

Indexes for N1QL: or how I got an order magnitude speed increase In Couchbase 4.0 we introduced N1QL query language: a flexible query language that brings SQL-like query to JSON documents. Whenever we talk about N1QL the conversation always opens...