mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
5aab7e5ce9
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5558 Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com> GitOrigin-RevId: b7f242939e718d5bb4f22b11c093ae77d21cdcce
49 lines
1.9 KiB
Makefile
49 lines
1.9 KiB
Makefile
.PHONY: test-bigquery
|
|
## test-bigquery: run tests for BigQuery backend
|
|
# will require some setup detailed here: https://github.com/hasura/graphql-engine-mono/tree/main/server/tests-hspec#required-setup-for-bigquery-tests
|
|
test-bigquery: start-postgres remove-tix-file
|
|
$(call stop_after, \
|
|
cabal run tests-hspec -- -m 'BigQuery')
|
|
|
|
.PHONY: test-sqlserver
|
|
## test-sqlserver: run tests for SQL Server backend
|
|
test-sqlserver: spawn-postgres spawn-sqlserver wait-for-postgres wait-for-sqlserver remove-tix-file
|
|
$(call stop_after, \
|
|
cabal run tests-hspec -- -m 'SQLServer')
|
|
|
|
.PHONY: test-mysql
|
|
## test-mysql: run tests for MySQL backend
|
|
test-mysql: spawn-postgres spawn-mysql wait-for-postgres wait-for-mysql remove-tix-file
|
|
$(call stop_after, \
|
|
cabal run tests-hspec -- -m 'MySQL')
|
|
|
|
.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')
|
|
|
|
.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')
|
|
|
|
.PHONY: test-cockroach
|
|
## test-cockroach: run tests for Cockroach backend
|
|
test-cockroach: spawn-postgres spawn-cockroach wait-for-postgres wait-for-cockroach remove-tix-file
|
|
$(call stop_after, \
|
|
cabal run tests-hspec -- -m 'Cockroach')
|
|
|
|
.PHONY: test-backends
|
|
## test-backends: run tests for all backends
|
|
# 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
|
|
test-backends: start-backends remove-tix-file
|
|
$(call stop_after, \
|
|
cabal run tests-hspec)
|
|
|
|
.PHONY: test-unit
|
|
## test-unit: run unit tests from main suite
|
|
test-unit: remove-tix-file
|
|
cabal run graphql-engine-tests -- unit
|