cartodb-postgresql/test
2018-07-20 13:22:02 +02:00
..
extension Remove PARALLEL mode in older versions (up to 9.6) 2017-11-13 09:35:20 +01:00
organization Don't rely on regexp to identify non explainable queries 2018-07-20 13:01:51 +02:00
overviews Fix the tests for boolean columns and overview creation 2016-03-21 12:27:00 +01:00
perf Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_AnalysisCheckTest_expect Test cleanup 2016-10-11 17:49:50 +02:00
CDB_AnalysisCheckTest.sql Test cleanup 2016-10-11 17:49:50 +02:00
CDB_CartodbfyTableTest_expect Added test for the case that arose in #325 2018-03-22 11:53:50 +01:00
CDB_CartodbfyTableTest.sql Added test for the case that arose in #325 2018-03-22 11:53:50 +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 Use PG 9.5 for travis tests; fix tests 2017-04-10 15:58:49 +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 Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_EqualIntervalBinsTest.sql Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_EstimateRowCountTest_expect Add CDB_EstimateRowCount function 2017-04-07 15:35:48 +02:00
CDB_EstimateRowCountTest.sql Add CDB_EstimateRowCount function 2017-04-07 15:35:48 +02: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 Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_HeadsTailsBinsTest.sql Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_HelperTest_expect Add a new helper function _CDB_Table_Exists 2018-07-03 13:00:24 +02:00
CDB_HelperTest.sql Add a new helper function _CDB_Table_Exists 2018-07-03 13:00:24 +02:00
CDB_HexagonTest_expect Fix tests 2018-02-15 10:27:19 +01:00
CDB_HexagonTest.sql Fix tests 2018-02-15 10:27:19 +01:00
CDB_JenksBinsTest_expect adjust expectation to reality instead of expectation (added TODOs) 2017-12-06 08:18:24 -05:00
CDB_JenksBinsTest.sql adjust expectation to reality instead of expectation (added TODOs) 2017-12-06 08:18:24 -05: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 Fix tests 2016-04-15 17:50:47 +02:00
CDB_OverviewsTest.sql Merge branch 'master' into 219-overviews-tolerance 2016-04-05 13:08:22 +02:00
CDB_QuantileBinsTest_expect moves quantile bins to use postgres precentile functions 2017-12-05 16:16:39 -05:00
CDB_QuantileBinsTest.sql fix alias of column 2017-12-05 16:24:11 -05:00
CDB_QueryStatementsTest_expect Fix tests 2017-04-10 12:17:47 +02:00
CDB_QueryStatementsTest.sql Fix tests 2017-04-10 12:17:47 +02:00
CDB_QueryTablesTest_expect Change querytables expect test 2018-07-20 13:22:02 +02:00
CDB_QueryTablesTest.sql Use PG 9.5 for travis tests; fix tests 2017-04-10 15:58:49 +02:00
CDB_QuotaTest_expect Exclude analysis cache tables from the quota 2016-10-14 10:56:14 +02:00
CDB_QuotaTest.sql Fix issues when running under pg10 2017-10-25 14:38:06 +02:00
CDB_RectangleTest_expect Fix tests 2018-02-15 10:27:19 +01:00
CDB_RectangleTest.sql Fix tests 2018-02-15 10:27:19 +01: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