mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-04 15:40:10 +00:00
92edd5f700
This refactor includes: - In Lua now we can clone a custom brush with Brush(Image) and the new brush doesn't share the image with the original one (added a new test for this). - Avoid creating extra images when it's not needed using Brush::cloneWithExistingImages() (we can inject existing images in the brush itself). - Delete Brush-copy contructor & assign operator to use Brush::clone() functions instead (which are more explicit). - Some code from 12d81352647e96c8ac6d70e4a252c37ce5a29ade (#4023) reverted to avoid recreating brushes on left-click or in the brush preview, i.e. moving the mouse (#4013 refers only to right-click, so only on right-click we have to adjust the custom brush).
Aseprite Tests
Test suite for Aseprite to avoid breaking backward compatibility.
This directory is cloned by the build.yml action to run several automated tests after Aseprite is compiled:
- Save/load file formats correctly. For this we have
.aseprite
,.png
,.gif
, etc. files sprites folder. - Test backward compatibility with Aseprite CLI options
- Future scripting API using 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
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.