Files
GDevelop/GDJS/tests
Harsimran Singh Virk b7902bb141 Add support for dynamic 2D lights (#1881)
* This adds a **Light** object that can be added on the scene, with a customizable color and radius.
* Add the **Light Obstacle** behavior to the object that must acts as obstacle (walls, etc...) to the lights.
* You can customize the ambient color of the rest of the scene from almost white (useful to show light shadows) to entirely black (useful for horror/exploration games) or any color.
* Use effects on the "Lighting" layer like "Kawase Blur" to achieve soft shadows.
2020-08-17 17:48:26 +02:00
..

These are the tests for the GDevelop JavaScript game engine.

Launching tests

Make sure you have Node.js installed. Update dependencies:

cd GDJS/tests
npm install

Then launch tests:

npm test #This will use Chrome Headless
npm test:firefox #To run tests using Firefox

About the tests

Unit tests

Tests are launched using Chrome. You need Chrome installed to run them. You can change the browser by modifying the package.json "test" command and install the appropriate karma package.

Tests are located in tests folder for the game engine, or directly in the folder of the tested extensions.

Games in games folder

Games contained in games folder are mainly here to be launched manually in order to check that a particular feature is working. Read the comments in the events to see what is the expected behavior, or compare with the native platform if you can.