From 05e6dd9b2473ea99a2e8697b4a9bbfd60790d4a8 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 3 Jan 2019 17:25:11 -0300 Subject: [PATCH] Add some examples about how to run the tests --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 4230b2c89..5f0582a0f 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,20 @@ on Aseprite project to do several automated tests: folder. * Test backward compatibility with [Aseprite CLI](https://www.aseprite.org/docs/cli/) options * Future [scripting API](https://github.com/aseprite/api) using [scripts](https://github.com/aseprite/tests/tree/master/scripts) + +## How to run tests? + +You have to set the `ASEPRITE` environment variable pointing to the +Aseprite executable and then run `run-tests.sh` from Bash: + + export ASEPRITE=$HOME/your-aseprite-build/bin/aseprite + git clone https://github.com/aseprite/tests.git + cd tests + bash run-tests.sh + +You can filter some tests with a regex giving a parameter to +`run-tests.sh`, for example: + + run-tests.sh color + +Should run all tests which have the `color` word in their name.