GithubHelp home page GithubHelp logo

tldr-pages / tldr-pages-test-harness Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 34 KB

A Bats test-suite that validates if a tldr-client is compatible with the client specifications set out in the tldr repository.

License: MIT License

Makefile 12.91% Shell 71.26% Dockerfile 15.83%
bats hacktoberfest testing tldr tldr-client tldr-pages

tldr-pages-test-harness's Introduction

tldr-pages-test-harness

Matrix chat license

About

A Bats test-suite that validates if a tldr-pages client is compatible with the client specifications set out in the tldr repository.

You can see a summary of each test, including links to the relevant sections of the specification in the tldr.bats file.

Results

Client Compliance
tealdeer tldr-pages compliance level for tealdeer
tldr-c-client tldr-pages compliance level for tldr-c-client
tldr-node-client tldr-pages compliance level for tldr-node-client
tldr-python-client tldr-pages compliance level for tldr-python-client
tlrc tldr-pages compliance level for tlrc

Running Against Local Builds

This is for if you want to check the results for a particular client, or are a maintainer of a tldr-pages client and want to run your development build against our compliance test suite.

Run the validate task to test the tldr command found on your path:

make validate

Alternatively, you can test any arbitrary binary by specifying the PATH_TO_TLDR_CLIENT environment variable:

PATH_TO_TLDR_CLIENT={{path/to/binary}} make validate

There are also the validate-level-2 and validate-level-3 tasks to check if clients adhere to optional parts of the spec.

Docker

You can execute the tests for a predefined tldr-pages client even if you don't have it installed, so long as the Dockerfile is available for the client.

Check the contents of the dockerfiles/ directory, and run the CLIENT={{client}} docker-validate command, populating the CLIENT environment variable with the client to test. For example:

CLIENT=tldr-c-client make docker-validate

You can also run docker-validate-level-2 or docker-validate-level-3 to check optional parts of the spec.

Dependencies

Debian

sudo apt install bats make

tldr-pages-test-harness's People

Contributors

kbdharun avatar sethfalco avatar

Stargazers

 avatar  avatar

Watchers

 avatar

tldr-pages-test-harness's Issues

docs: improve documentation for running tests locally

We want to improve the documentation on the README to cover three things:

  • It should be clear how to run the tests locally.
  • It should be clear that the usage section is aimed at client maintainers to be able to check if their client adheres to our specifications during development.
  • There should be a human-readable summary of what tests we actually have.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.