/ docs / src / en / installation-and-build / automated-testing.md
automated-testing.md
 1  ---
 2  order: 4
 3  ---
 4  
 5  # Automated Testing
 6  
 7  **TUUI** includes automated testing. The testing framework uses Microsoft's [Playwright](https://playwright.dev).
 8  
 9  **Playwright** is optimized for web application testing and has full support for the **Electron** framework. It is simple to install, requires no configuration to start testing immediately, and is cross-platform. You can learn more about **Playwright** here: https://github.com/microsoft/playwright
10  
11  Only very simple launch and behavioral tests for the template main screen have been implemented in this template. Advanced testing will depend on the scope of your application.
12  
13  Currently, the test specification file is located in the `tests` directory and the test results file is located in `tests/results`. (The built-in test specification file does not generate a separate results file.)
14  
15  The Playwright configuration is `playwright.config.ts` in the project root, see the following documentation for more information on this: https://playwright.dev/docs/test-configuration
16  
17  Once everything is configured, you can run a test with the following command.
18  
19  ```shell
20  $ npm run test
21  ```
22  
23  Before running the test, empty the build directory (`dist`) and compile the package for the test.