summaryrefslogtreecommitdiffstats
path: root/tests/test_main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add a test suite for `List`Andrii Doroshenko (Xrayez)2020-09-131-0/+1
| | | | Adds a number of test cases for `List::swap()`.
* Move GDNative `String` tests to respective moduleAndrii Doroshenko (Xrayez)2020-09-111-1/+0
| | | | | | | | | | | | GDNative-specific tests moved out of main `tests/` folder into `modules/gdnative/tests`. Include path for GDNative headers are still hardcoded in `tests/SCsub`, but made conditional now. Also fixed test case tag typos. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-0/+1
|
* Fix doctest runner ignoring all arguments starting with --teststrank2020-09-021-2/+3
| | | | | Instead of just the one argument that is exactly --test. The long-form arguments --test-case and --test-suite were ignored.
* Register GDScript test tools as test commands to run via command-lineAndrii Doroshenko (Xrayez)2020-09-021-14/+36
|
* Merge pull request #40955 from Calinou/test-add-expressionRémi Verschelde2020-08-311-0/+1
|\ | | | | Add a test suite for Expression
| * Add a test suite for ExpressionHugo Locurcio2020-08-271-0/+1
| | | | | | | | | | This also makes the first parameter of `Expression::execute()` optional from C++. Previously, it was only optional in the scripting API.
* | Add a test suite for GradientHugo Locurcio2020-08-191-0/+1
|/
* Fix memory leak in test argsAndrii Doroshenko (Xrayez)2020-07-311-0/+3
|
* Merge pull request #40928 from bruvzg/fix_test_heap_use_after_freeRémi Verschelde2020-07-311-1/+2
|\ | | | | Fix heap use after free in the doctest "main".
| * Fix heap use after free in the doctest "main".bruvzg2020-07-311-1/+2
| |
* | Add a test suite for ColorHugo Locurcio2020-07-311-0/+1
|/
* Hide implementation details of doctest macrosAndrii Doroshenko (Xrayez)2020-07-301-1/+1
| | | | | | | | | | | | | | | | | | | `test_macros.h` is created to provide various macros acting as aliases for doctest macros to work better with Godot internals and conventions. This also makes it accessible for those who'd like to start writing tests in Godot, as most vital information can be put together and documented directly in `test_macros.h` header. Developers are encouraged to include the new `tests/test_macros.h` for writing new tests over `thirdparty/doctest/doctest.h`. Added `TEST_CASE_PENDING("name")` as an alias for `TEST_CASE("name", doctest::skip())` which could be used to mark failing tests for issues yet to be fixed, so as to not affect CI testing results. Added `ERR_PRINT_OFF` and `ERR_PRINT_ON` to control error printing for testing various **expected** failure paths within Godot without polluting the test summary with error messages.
* Cleanup obsolete tests from displaying in helpAndrii Doroshenko (Xrayez)2020-07-291-50/+8
|
* Add test suite for `Variant`Andrii Doroshenko (Xrayez)2020-07-281-0/+1
| | | | Added a test case for `VariantWriter` and `VariantParser` overflows.
* Enable support for C++ modules testsAndrii Doroshenko (Xrayez)2020-07-261-0/+2
| | | | | | | Modules-specific tests can be written under respective module folders. Each module should have "tests" folder created with the tests implemented as `doctest` headers, so they can be collected by the buildsystem and included directly in `tests/test_main.cpp` to be compiled.
* Move `tests` to the top-level directoryAndrii Doroshenko (Xrayez)2020-07-261-0/+127