Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jaktestowac/testcontainers-example
- Owner: jaktestowac
- Created: 2023-09-26T08:28:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-26T11:43:55.000Z (over 1 year ago)
- Last Synced: 2023-09-27T15:46:48.974Z (over 1 year ago)
- Topics: automation, javascript, nodejs, test-automation, testcontainers
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
- DockerSystem 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
```