2022-06-20 16:33:04 +03:00
.PHONY : test -bigquery
## test-bigquery: run tests for BigQuery backend
2022-10-04 11:30:09 +03:00
# will require some setup detailed here: https://github.com/hasura/graphql-engine-mono/tree/main/server/lib/api-tests#required-setup-for-bigquery-tests
2022-07-20 14:20:35 +03:00
test-bigquery : start -postgres remove -tix -file
2022-07-22 13:56:03 +03:00
$( call stop_after, \
2022-10-04 11:30:09 +03:00
cabal run api-tests -- -m 'BigQuery' )
2022-06-20 16:33:04 +03:00
.PHONY : test -sqlserver
## test-sqlserver: run tests for SQL Server backend
2022-10-17 16:19:12 +03:00
test-sqlserver : start -postgres start -sqlserver remove -tix -file
2022-07-22 13:56:03 +03:00
$( call stop_after, \
2022-10-04 11:30:09 +03:00
cabal run api-tests -- -m 'SQLServer' )
2022-06-20 16:33:04 +03:00
.PHONY : test -mysql
## test-mysql: run tests for MySQL backend
2022-10-17 16:19:12 +03:00
test-mysql : start -postgres start -mysql remove -tix -file
2022-07-22 13:56:03 +03:00
$( call stop_after, \
2022-10-04 11:30:09 +03:00
cabal run api-tests -- -m 'MySQL' )
2022-06-20 16:33:04 +03:00
2022-08-03 14:05:59 +03:00
.PHONY : test -citus
## test-citus: run tests for Citus backend
2022-10-17 16:19:12 +03:00
test-citus : start -postgres start -citus remove -tix -file
2022-08-03 14:05:59 +03:00
$( call stop_after, \
2022-10-04 11:30:09 +03:00
cabal run api-tests -- -m 'Citus' )
2022-08-03 14:05:59 +03:00
2022-08-25 15:08:07 +03:00
.PHONY : test -data -connectors
## test-data-connectors: run tests for Data Connectors
2022-10-17 16:19:12 +03:00
test-data-connectors : start -postgres start -dc -reference -agent start -dc -sqlite -agent remove -tix -file
2022-08-25 15:08:07 +03:00
$( call stop_after, \
2022-10-04 11:30:09 +03:00
cabal run api-tests -- -m 'DataConnector' )
2022-08-25 15:08:07 +03:00
2022-08-25 20:17:28 +03:00
.PHONY : test -cockroach
## test-cockroach: run tests for Cockroach backend
2022-10-17 16:19:12 +03:00
test-cockroach : start -postgres start -cockroach remove -tix -file
2022-08-25 20:17:28 +03:00
$( call stop_after, \
2022-10-04 11:30:09 +03:00
cabal run api-tests -- -m 'Cockroach' )
2022-08-25 20:17:28 +03:00
2022-06-20 16:33:04 +03:00
.PHONY : test -backends
## test-backends: run tests for all backends
2022-10-04 11:30:09 +03:00
# BigQuery tests will require some setup detailed here: https://github.com/hasura/graphql-engine-mono/tree/main/server/lib/api-tests#required-setup-for-bigquery-tests
2022-07-20 14:20:35 +03:00
test-backends : start -backends remove -tix -file
2022-07-22 13:56:03 +03:00
$( call stop_after, \
2022-10-04 11:30:09 +03:00
cabal run api-tests)
2022-08-19 14:22:28 +03:00
.PHONY : test -unit
## test-unit: run unit tests from main suite
test-unit : remove -tix -file
cabal run graphql-engine-tests -- unit