0.0.144 • Published 5 days ago

@malloydata/malloy-tests v0.0.144

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

Tests

By default, tests run against BigQuery, Postgres, and DuckDB.

Tests can also be run against a specific database, using the MALLOY_DATABASE or MALLOY_DATABASES environment variable, such as: MALLOY_DATABASES=bigquery,postgres npm run test

Setting up postgres:

Setup for Postgres Test Data

Assumes that postgres has been installed via nix (installs but doesn't configure).

ADD to environment: export PGHOST=localhost

postgres_init.sh - builds a database as the current user in .tmp/data/malloytestdb. Starts server runing on localhost:5432 copies the test data in malloytest-postgres.sql.gz into the database.

postgres_start.sh - starts the postgres server, once it has been installed (use after a reboot, for example)

postgres_stop.sh - stops the postgres server

state_fact.sql - example file on how to insert data from json

Setting up DuckDB:

Building test database for duckdb

  1. At top-level, run npx ts-node scripts/build_duckdb_test_database.ts
  2. A file called duckdb_test.db should be created in the test/data/duckdb folder - tests will automatically look there.
0.0.144

12 days ago

0.0.143

19 days ago

0.0.142

26 days ago

0.0.141

28 days ago

0.0.140

29 days ago

0.0.138

1 month ago

0.0.137

1 month ago

0.0.136

1 month ago

0.0.135

1 month ago

0.0.134

2 months ago

0.0.133

2 months ago

0.0.132

2 months ago

0.0.131

2 months ago

0.0.129

2 months ago

0.0.130

2 months ago

0.0.128

2 months ago

0.0.127

2 months ago

0.0.126

2 months ago

0.0.125

3 months ago

0.0.124

3 months ago

0.0.123

3 months ago

0.0.122

3 months ago

0.0.121

3 months ago

0.0.120

3 months ago

0.0.119

4 months ago

0.0.118

4 months ago

0.0.117

4 months ago

0.0.116

4 months ago

0.0.115

5 months ago

0.0.114

5 months ago

0.0.113

5 months ago

0.0.112

5 months ago

0.0.111

5 months ago

0.0.110

5 months ago

0.0.109

5 months ago

0.0.108

5 months ago

0.0.107

5 months ago

0.0.106

5 months ago

0.0.105

5 months ago

0.0.104

6 months ago

0.0.103

6 months ago

0.0.102

6 months ago

0.0.101

6 months ago

0.0.100

6 months ago

0.0.99

6 months ago

0.0.98

6 months ago

0.0.97

7 months ago

0.0.96

7 months ago

0.0.95

7 months ago

0.0.94

7 months ago

0.0.93

7 months ago

0.0.92

7 months ago

0.0.91

7 months ago

0.0.90

7 months ago

0.0.89

7 months ago

0.0.88

7 months ago

0.0.87

7 months ago

0.0.85

8 months ago

0.0.83

8 months ago

0.0.82

8 months ago

0.0.81

8 months ago

0.0.80

8 months ago

0.0.79

9 months ago

0.0.78

9 months ago

0.0.77

9 months ago

0.0.76

9 months ago

0.0.75

9 months ago

0.0.74

9 months ago

0.0.73

9 months ago

0.0.71

9 months ago

0.0.70

9 months ago

0.0.69

9 months ago

0.0.68

9 months ago

0.0.67

9 months ago