forked from repo-mirrors/dbt-core
* Initial implementation of unit testing (from pr #2911) Co-authored-by: Michelle Ark <michelle.ark@dbtlabs.com> * 8295 unit testing artifacts (#8477) * unit test config: tags & meta (#8565) * Add additional functional test for unit testing selection, artifacts, etc (#8639) * Enable inline csv format in unit testing (#8743) * Support unit testing incremental models (#8891) * update unit test key: unit -> unit-tests (#8988) * convert to use unit test name at top level key (#8966) * csv file fixtures (#9044) * Unit test support for `state:modified` and `--defer` (#9032) Co-authored-by: Michelle Ark <michelle.ark@dbtlabs.com> * Allow use of sources as unit testing inputs (#9059) * Use daff for diff formatting in unit testing (#8984) * Fix #8652: Use seed file from disk for unit testing if rows not specified in YAML config (#9064) Co-authored-by: Michelle Ark <MichelleArk@users.noreply.github.com> Fix #8652: Use seed value if rows not specified * Move unit testing to test and build commands (#9108) * Enable unit testing in non-root packages (#9184) * convert test to data_test (#9201) * Make fixtures files full-fledged members of manifest and enable partial parsing (#9225) * In build command run unit tests before models (#9273) --------- Co-authored-by: Michelle Ark <michelle.ark@dbtlabs.com> Co-authored-by: Michelle Ark <MichelleArk@users.noreply.github.com> Co-authored-by: Emily Rockman <emily.rockman@dbtlabs.com> Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> Co-authored-by: Kshitij Aranke <kshitij.aranke@dbtlabs.com>
33 lines
737 B
YAML
33 lines
737 B
YAML
##
|
|
# This compose file is used for local development and adapter testing only.
|
|
# See `/docker` for a generic and production-ready docker file
|
|
##
|
|
|
|
version: "3.5"
|
|
services:
|
|
database:
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_USER: "root"
|
|
POSTGRES_PASSWORD: "password"
|
|
POSTGRES_DB: "dbt"
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
test:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.test
|
|
args:
|
|
# Run `make .env` to set $USER_ID and $GROUP_ID
|
|
USER_ID: ${USER_ID:-}
|
|
GROUP_ID: ${GROUP_ID:-}
|
|
command: "/root/.virtualenvs/dbt/bin/pytest"
|
|
environment:
|
|
POSTGRES_TEST_HOST: "database"
|
|
volumes:
|
|
- .:/usr/app
|
|
working_dir: /usr/app
|
|
depends_on:
|
|
- database
|