Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaktestowac/testcontainers-example

Sample project to demonstrate usage of Testcontainers with node.js and JavaScript
https://github.com/jaktestowac/testcontainers-example

automation javascript nodejs test-automation testcontainers

Last synced: about 1 month ago
JSON representation

Sample project to demonstrate usage of Testcontainers with node.js and JavaScript

Awesome Lists containing this project

README

        

# About

Sample project to demonstrate usage of **Testcontainers** with **node.js** and **JavaScript**.

## What are Testcontainers?

Testcontainers is a library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

More:

- https://node.testcontainers.org/
- https://github.com/testcontainers/workshop

## About the tests

Tests for **🦎 GAD** (application for learning test automation):

- https://hub.docker.com/r/jaktestowac/gad

Tests are based on:

- mocha
- chai
- supertest
- Testcontainers

# Requirements

Requirements:

- node.js
- Docker

System requirements for Testcontainers:

- https://java.testcontainers.org/supported_docker_environment/

# How to

Run following commands.

First install modules:

```
npm i
```

and then run tests:

```
npm run test
```