2022-06-20 16:33:04 +03:00
.PHONY : test -bigquery
## test-bigquery: run tests for BigQuery backend
2022-07-22 13:56:03 +03:00
# will require some setup detailed here: https://github.com/hasura/graphql-engine-mono/tree/main/server/tests-hspec#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, \
cabal run tests-hspec -- -m 'BigQuery' )
2022-06-20 16:33:04 +03:00
.PHONY : test -sqlserver
## test-sqlserver: run tests for SQL Server backend
2022-07-27 16:29:06 +03:00
test-sqlserver : spawn -postgres spawn -sqlserver wait -for -postgres wait -for -sqlserver remove -tix -file
2022-07-22 13:56:03 +03:00
$( call stop_after, \
cabal run tests-hspec -- -m 'SQLServer' )
2022-06-20 16:33:04 +03:00
.PHONY : test -mysql
## test-mysql: run tests for MySQL backend
2022-07-27 16:29:06 +03:00
test-mysql : spawn -postgres spawn -mysql wait -for -postgres wait -for -mysql remove -tix -file
2022-07-22 13:56:03 +03:00
$( call stop_after, \
cabal run tests-hspec -- -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
test-citus : spawn -postgres spawn -citus wait -for -postgres wait -for -citus remove -tix -file
$( call stop_after, \
cabal run tests-hspec -- -m 'Citus' )
2022-08-25 15:08:07 +03:00
.PHONY : test -data -connectors
## test-data-connectors: run tests for Data Connectors
test-data-connectors : start -postgres start -dc -reference -agent remove -tix -file
$( call stop_after, \
cabal run tests-hspec -- -m 'DataConnector' )
2022-06-20 16:33:04 +03:00
.PHONY : test -backends
## test-backends: run tests for all backends
2022-07-22 13:56:03 +03:00
# BigQuery tests will require some setup detailed here: https://github.com/hasura/graphql-engine-mono/tree/main/server/tests-hspec#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, \
cabal run tests-hspec)
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