Testlemon is a tool for easy and quick web api testing and monitoring.
Vitis docs.testlemon.com for complete documentation.
docker run --rm itbusina/testlemon -c https://api.mockrest.com/openapi/v1.json
Output
Welcome to Testlemon!
Created by https://itbusina.com.
Contact contact@testlemon.com in case any questions.
Testlemon is running.
Running the collection 'd6b00018-dddd-40c2-b66f-eb1aaaba86ad' 1 time(s).
POST https://api.mockrest.com/users => OK in 00:00:00.5944665
POST https://api.mockrest.com/products => OK in 00:00:00.6435270
DELETE https://api.mockrest.com/products => OK in 00:00:00.7964084
POST https://api.mockrest.com/custom => Created in 00:00:00.8279779
DELETE https://api.mockrest.com/comments => OK in 00:00:00.9653697
DELETE https://api.mockrest.com/users => OK in 00:00:01.0035434
POST https://api.mockrest.com/comments => OK in 00:00:01.0071714
GET https://api.mockrest.com/products => OK in 00:00:01.0661048
GET https://api.mockrest.com/users => OK in 00:00:01.1363180
GET https://api.mockrest.com/comments => OK in 00:00:01.1407234
Total requests: 10
Successful: 10
Failed: 0
Total Duration: 00:00:02.1043505
Create a file with tests collection.yaml
tests:
- url: https://api.mockrest.com/users
- url: https://api.mockrest.com/products
- url: https://api.mockrest.com/comments
Run the tests:
docker run --rm itbusina/testlemon -c "$(<.collection.yaml)"
Create a file and make it available by url.
docker run --rm itbusina/testlemon:latest -c https://raw.githubusercontent.com/itbusina/testlemon-docs/refs/heads/main/examples/quick-start.yaml
Create multiple test collections.
docker run --rm itbusina/testlemon:latest -c "$(<collection-1.yaml)" "$(<collection-2.yaml)"
Create test collection with variable placeholders.
tests:
- url: ${{ vars.host }}/users
- url: ${{ vars.host }}/comments
- url: ${{ vars.host }}/products
docker run --rm itbusina/testlemon:latest -c "$(<collection.yaml)" --variables host=https://api.mockrest.com
Create test collection with variable placeholders.
tests:
- url: ${{ vars.host }}/users
- url: ${{ vars.host }}/comments
- url: ${{ vars.host }}/products
docker run --rm itbusina/testlemon:latest -c "$(<collection.yaml)" --secrets host=https://api.mockrest.com