cartodb-postgresql/test
2016-02-08 15:46:25 +01:00
..
extension Add CDB_ForeignTable specs 2016-02-08 15:46:25 +01:00
organization Multiple users test 2015-09-07 11:43:57 +02:00
overviews Avoid creating GridCluster overviews for non-point datasets 2016-01-29 16:19:35 +01:00
perf Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_CartodbfyTableTest_expect Merge remote-tracking branch 'origin' into 174_cartodbfy 2015-11-24 16:29:32 +01:00
CDB_CartodbfyTableTest.sql Merge remote-tracking branch 'origin' into 174_cartodbfy 2015-11-24 16:29:32 +01:00
CDB_DateToNumberTest_expect Makes CDB_DateToNumber() tests more intuitive 2202 2015-10-05 14:56:45 +02:00
CDB_DateToNumberTest.sql Makes CDB_DateToNumber() tests more intuitive 2202 2015-10-05 14:56:45 +02:00
CDB_DigitSeparatorTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_DigitSeparatorTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_DistinctMeasureTest_expect update test output 2015-06-25 08:17:41 -04:00
CDB_DistinctMeasureTest.sql fixed symlink path, other minor items 2015-06-23 18:32:16 -04:00
CDB_DistTypeTest_expect adding tests 2015-06-08 15:01:50 -04:00
CDB_DistTypeTest.sql adding tests 2015-06-08 15:01:50 -04:00
CDB_EqualIntervalBinsTest_expect ugh bad filename 2015-05-19 16:03:54 -04:00
CDB_EqualIntervalBinsTest.sql fixed test expectation value 2015-05-18 12:00:42 -04:00
CDB_GreatCircle_expect Add optional parameter for max. great circle segment length 2015-11-23 17:13:17 +01:00
CDB_GreatCircle.sql Add optional parameter for max. great circle segment length 2015-11-23 17:13:17 +01:00
CDB_HeadsTailsBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_HeadsTailsBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_HelperTest_expect Drops CDB_Trim_Octets for CDB_Octet_Truncate 2015-10-26 18:01:03 +01:00
CDB_HelperTest.sql Drops CDB_Trim_Octets for CDB_Octet_Truncate 2015-10-26 18:01:03 +01:00
CDB_HexagonTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_HexagonTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_JenksBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_JenksBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_MathTest_expect added CDB_Math_mode 2014-08-19 18:09:27 +02:00
CDB_MathTest.sql added CDB_Math_mode 2014-08-19 18:09:27 +02:00
CDB_OverviewsTest_expect Avoid creating GridCluster overviews for non-point datasets 2016-01-29 16:19:35 +01:00
CDB_OverviewsTest.sql Avoid creating GridCluster overviews for non-point datasets 2016-01-29 16:19:35 +01:00
CDB_QuantileBinsTest_expect missed updating value 2015-04-28 10:21:34 -04:00
CDB_QuantileBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_QueryStatementsTest_expect Fix potential infinite loop in CDB_QueryStatements 2014-06-05 15:00:57 +02:00
CDB_QueryStatementsTest.sql Fix potential infinite loop in CDB_QueryStatements 2014-06-05 15:00:57 +02:00
CDB_QueryTablesTest_expect Add constraint to QueryTablesTest 2015-12-22 16:21:54 -08:00
CDB_QueryTablesTest.sql Clean up after tests 2015-06-01 10:57:30 -07:00
CDB_QuotaTest_expect Modify sampling of table quota trigger #126 2015-08-27 12:52:30 +02:00
CDB_QuotaTest.sql Modify sampling of table quota trigger #126 2015-08-27 12:52:30 +02:00
CDB_StatsTest_expect Raise min message so we don't have to validate notices 2015-09-04 00:02:30 +02:00
CDB_StatsTest.sql Do not use random() for the distribution to test CDB_Stats functions 2015-09-09 17:08:32 +02:00
CDB_TransformToWebmercatorTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_TransformToWebmercatorTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_UserTablesTest_expect updates tests 2015-07-27 10:37:07 +02:00
CDB_UserTablesTest.sql updates tests 2015-07-27 10:37:07 +02:00
CDB_XYZ_ExtentTest_expect Round extent outputs in test 2015-12-22 16:34:18 -08:00
CDB_XYZ_ExtentTest.sql Round extent outputs in test 2015-12-22 16:34:18 -08:00
Makefile Re-add the test/Makefile which was available while in cartodb/lib/sql 2014-05-07 18:08:38 +02:00
README Add instructions about adding a test 2014-06-04 10:40:18 +02:00

Adding tests consists in adding 2 files in this directory: one file
containing the sql code and another containing the expected output.

Example, to add a test for CDB_Something function, you'd add:

 - CDB_SomethingTest.sql
 - CDB_SomethingTest_expect

To easy the generation of the expected file you can initially omit it,
then run "make -C .. installcheck" from the top-level dir and copy
../results/test/CDB_SomethingTest.out to CDB_SomethingTest_expect chopping
off the first line:

 make -C .. installcheck
 tail -n +2 ../results/test/CDB_SomethingTest.out > CDB_SomethingTest_expect