How to use ConfigCat's public API to conduct integration tests

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • public-api-guide-integration-testing-sample

    A step by step guide on how to use ConfigCat's Public API to conduct an integration test.

  • To help you follow along, I've added the following sample app. If you wish to code along with me, you can check out the starter-code branch. If you end up getting stuck, feel free to view the complete code on the main branch.

  • Newman

    Newman is a command-line collection runner for Postman

  • Have Postman installed - A platform used for testing and documenting APIs

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • jest

    Delightful JavaScript Testing.

  • Besides evaluating your feature flags with ConfigCat's SDKs, you may want to perform the same actions as you normally do while working with the Dashboard UI in your code. This is where the ConfigCat Public Management API comes in useful. And to show you how it works, I'll demo how we can use it to perform actions such as setting up a testing environment and creating a new feature flag using JavaScript. Then finally, we'll write an integration test to ensure all the functions work with each other using the JEST JavaScript Testing Framework. If you're eager to peek at the API docs before we get started, I have linked it here.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts