cartodb-postgresql/test
2017-04-10 15:58:49 +02:00
..
extension Merge pull request #283 from CartoDB/157-test-fixes 2016-11-30 16:08:21 +01:00
organization Multiple users test 2015-09-07 11:43:57 +02:00
overviews Fix the tests for boolean columns and overview creation 2016-03-21 12:27:00 +01:00
perf
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 Fix error detection and fix tests 2016-03-08 14:06:58 +01:00
CDB_CartodbfyTableTest.sql Add idempotence test 2016-03-08 12:10:46 +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
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 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
CDB_HexagonTest.sql
CDB_JenksBinsTest_expect Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_JenksBinsTest.sql Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_MathTest_expect
CDB_MathTest.sql
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 Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_QuantileBinsTest.sql Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07: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 Use PG 9.5 for travis tests; fix tests 2017-04-10 15:58:49 +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 Exclude analysis cache tables from the quota 2016-10-14 10:56:14 +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
CDB_TransformToWebmercatorTest.sql
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
README

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