# New Castle Tester - running all engine automatic tests on all platforms (desktop, mobile, Nintendo Switch...) with all compilers (FPC, Delphi)

**URL:** https://forum.castle-engine.io/t/new-castle-tester-running-all-engine-automatic-tests-on-all-platforms-desktop-mobile-nintendo-switch-with-all-compilers-fpc-delphi/547
**Category:** News
**Created:** [March 19, 2022, 9:56pm UTC](https://forum.castle-engine.io/t/new-castle-tester-running-all-engine-automatic-tests-on-all-platforms-desktop-mobile-nintendo-switch-with-all-compilers-fpc-delphi/547 "2022-03-19T21:56:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [March 19, 2022, 9:56pm UTC](https://forum.castle-engine.io/t/new-castle-tester-running-all-engine-automatic-tests-on-all-platforms-desktop-mobile-nintendo-switch-with-all-compilers-fpc-delphi/547/1 "2022-03-19T21:56:02Z")

</div>

| [![Castle Game Engine Automatic Tests](https://castle-engine.io/wp/wp-content/uploads/2022/03/Zrzut-ekranu-z-2022-03-19-22-52-28-200x118.png)](https://castle-engine.io/wp/wp-content/uploads/2022/03/Zrzut-ekranu-z-2022-03-19-22-52-28.png "Castle Game Engine Automatic Tests") |

This screenshot will not win the _#screenshotsaturday_ hashtag, but it took a lot of effort to achieve 🙂

Thanks to _Andrzej Kilijański_ we have a big upgrade to our automatic tests application, available as always in [tests/ subdirectory of CGE](https://github.com/castle-engine/castle-engine/tree/master/tests). Instead of using _FpcUnit_, the application can now use our own testing framework [CastleTester](https://github.com/castle-engine/castle-engine/blob/master/tests/code/tester-castle/castletester.pas) that

1. Is deliberately very compatible with _FpcUnit_ (in fact, using some of its code).

2. Tightly integrated with CGE, providing easy UI using CGE to run and display all tests results, and some extra utilities like `CreateWindowForTest`.

3. Compiles and runs with both FPC and Delphi. All our tests now pass with both compilers. We made a number of fixes to Delphi support thanks to this (FPC support was being tested and flawless since a long time). 

4. Compiles and runs for all platforms we support. E.g. you can run the testsuite on [Android](https://castle-engine.io/android), [iOS](https://castle-engine.io/ios), [Nintendo Switch](https://castle-engine.io/nintendo_switch) this way, by building the castle-tester for these platforms — just like any other CGE application.

As always, both [Jenkins](https://castle-engine.io/cloud_builds_jenkins) and [GitHub Actions](https://github.com/castle-engine/castle-engine/actions) run all these tests automatically after every push. Jenkins even runs them with both FPC and Delphi 11.
