Renat Suleymanov 9ce8e92ba3 Fix all the tests 1 سال پیش
..
AllTests.groupproj b543759e0b Added logger component. 5 سال پیش
AllTests.lpg b543759e0b Added logger component. 5 سال پیش
README.md b6e7e958fe Preparing the structure to add new tests. 6 سال پیش
RunAllTests.bat 64702b3bca Added PasDoc script to generate documentation via shell. 5 سال پیش
RunAllTests.sh 64702b3bca Added PasDoc script to generate documentation via shell. 5 سال پیش
Test.pas 2c74edcbdb Fixed warnings in all tests. 5 سال پیش
Test_HTTPAuthentication.dpr 78f1515346 Fixed memory leak in "TBrookHTTPResponse.SendStream()". 5 سال پیش
Test_HTTPAuthentication.dproj b543759e0b Added logger component. 5 سال پیش
Test_HTTPAuthentication.lpi 8617d61337 Merging from branch "expr". 5 سال پیش
Test_HTTPCookies.dpr 8e56a778eb Drop support for FPC 3.0.0. 5 سال پیش
Test_HTTPCookies.dproj b543759e0b Added logger component. 5 سال پیش
Test_HTTPCookies.lpi 12f9c200ad Added tests for the BrookHTTPCookies classes. 5 سال پیش
Test_HTTPRequest.dpr 9ce8e92ba3 Fix all the tests 1 سال پیش
Test_HTTPRequest.dproj b543759e0b Added logger component. 5 سال پیش
Test_HTTPRequest.lpi b840d38c56 Improved the media types feature by choosing the provider according the system. 6 سال پیش
Test_HTTPResponse.dpr 7d44d1f7b2 Added a new method allowing to clear a response object preserving headers and cookies. 5 سال پیش
Test_HTTPResponse.dproj b543759e0b Added logger component. 5 سال پیش
Test_HTTPResponse.lpi 45bc7ff99e Added tests for the HTTP response feature. 6 سال پیش
Test_HTTPServer.dpr 8e56a778eb Drop support for FPC 3.0.0. 5 سال پیش
Test_HTTPServer.dproj b543759e0b Added logger component. 5 سال پیش
Test_HTTPServer.lpi 4557106b30 Added tests for the HTTP Server Security feature. 6 سال پیش
Test_HTTPUploads.dpr 0ade5c7e1d Fixed method "TBrookHTTPUploads.Next()" to return an upload item even if its handle is null. 5 سال پیش
Test_HTTPUploads.dproj b543759e0b Added logger component. 5 سال پیش
Test_HTTPUploads.lpi b840d38c56 Improved the media types feature by choosing the provider according the system. 6 سال پیش
Test_LibraryLoader.dpr 8617d61337 Merging from branch "expr". 5 سال پیش
Test_LibraryLoader.dproj b543759e0b Added logger component. 5 سال پیش
Test_LibraryLoader.lpi b840d38c56 Improved the media types feature by choosing the provider according the system. 6 سال پیش
Test_Logger.dpr b543759e0b Added logger component. 5 سال پیش
Test_Logger.dproj b543759e0b Added logger component. 5 سال پیش
Test_Logger.lpi b543759e0b Added logger component. 5 سال پیش
Test_MathExpression.dpr b8edf85ff2 Bump v5.4.9 4 سال پیش
Test_MathExpression.dproj b543759e0b Added logger component. 5 سال پیش
Test_MathExpression.lpi 8617d61337 Merging from branch "expr". 5 سال پیش
Test_MediaTypes.dpr 9db0393a99 Made media types checking more permissive for unknown types. 5 سال پیش
Test_MediaTypes.dproj b543759e0b Added logger component. 5 سال پیش
Test_MediaTypes.lpi b840d38c56 Improved the media types feature by choosing the provider according the system. 6 سال پیش
Test_Reader.dpr 8617d61337 Merging from branch "expr". 5 سال پیش
Test_Reader.dproj b543759e0b Added logger component. 5 سال پیش
Test_Reader.lpi b840d38c56 Improved the media types feature by choosing the provider according the system. 6 سال پیش
Test_String.dpr f9597fc51c Added more tests for the BrookString unit. 6 سال پیش
Test_String.dproj b543759e0b Added logger component. 5 سال پیش
Test_String.lpi b840d38c56 Improved the media types feature by choosing the provider according the system. 6 سال پیش
Test_StringMap.dpr 181244e178 Assumed a fallback handle in calling "TBrookStringMap.Create(nil)". 5 سال پیش
Test_StringMap.dproj b543759e0b Added logger component. 5 سال پیش
Test_StringMap.lpi 14816b901b Upgrade all examples. 5 سال پیش
Test_URLEntryPoints.dpr 14816b901b Upgrade all examples. 5 سال پیش
Test_URLEntryPoints.dproj b543759e0b Added logger component. 5 سال پیش
Test_URLEntryPoints.lpi 14816b901b Upgrade all examples. 5 سال پیش
Test_URLRouter.dpr 9ce8e92ba3 Fix all the tests 1 سال پیش
Test_URLRouter.dproj b543759e0b Added logger component. 5 سال پیش
Test_URLRouter.lpi 14816b901b Upgrade all examples. 5 سال پیش
Test_Utility.dpr 9ce8e92ba3 Fix all the tests 1 سال پیش
Test_Utility.dproj b543759e0b Added logger component. 5 سال پیش
Test_Utility.lpi b840d38c56 Improved the media types feature by choosing the provider according the system. 6 سال پیش
Test_libsagui.dpr 6e89ec30e7 Added new property allowing to specify the server security cipher algorithm. 4 سال پیش
Test_libsagui.dproj b543759e0b Added logger component. 5 سال پیش
Test_libsagui.lpi 0fa8fe8bcf Added unit to make exception testing easy. 6 سال پیش
Tests.inc 6a94b6abf9 Dropped support to very old FPC versions. 5 سال پیش
TextFile.txt 1ef56c06b1 Added tests for the line reader. 6 سال پیش
fakemime.types f9183dae58 Fixed media types parser avoiding empty characters. 6 سال پیش

README.md

How to do the tests?

Compile the test you want. Now, after generating its executable, open the terminal and run the script related to your system. On Linux:

./RunAllTests.sh

on Windows:

RunAllTests.bat

How to check if the test is OK?

The script will report the result of all tests, for example:

./Test_String OK
./Test_StringMap OK
./Test_Utils OK
./Sagui/Test_libsagui OK
Total: 4

If you do not get the message OK in front the test, then probably it failed.

Note: you need to install the Brook library before doing any test, because the most of them depends on it.

How to report a bug when a test fails?

You have two options:

  1. Open issue at new issue page;
  2. Fork the project, fix the bug and open a pull-request (more about fork/PR).