README

entc integration tests

Regenerating new templates

If you edited one of the files in entc/gen/template or entc/load/template, run the following command to from entc directory:

go generate ./...

Running the integration tests

docker-compose -f compose/docker-compose.yaml up -d --scale test=0
go test 

Use the -run flag for running specific test or set of tests. For example:

go test -run=MySQL

go test -run=SQLite/Sanity
Expand ▾ Collapse ▴

Directories

Path Synopsis
config/ent
config/ent/enttest
config/ent/hook
config/ent/migrate
config/ent/predicate
config/ent/runtime
config/ent/schema
config/ent/user
customid/ent
customid/ent/blob
customid/ent/car
customid/ent/enttest
customid/ent/group
customid/ent/hook
customid/ent/migrate
customid/ent/pet
customid/ent/predicate
customid/ent/runtime
customid/ent/schema
customid/ent/user
ent
ent/card
ent/comment
ent/enttest
ent/fieldtype
ent/file
ent/filetype
ent/goods
ent/group
ent/groupinfo
ent/hook
ent/item
ent/migrate
ent/node
ent/pet
ent/predicate
ent/role
ent/runtime
ent/schema
ent/spec
ent/task
ent/template
ent/user
gremlin/ent
gremlin/ent/card
gremlin/ent/comment
gremlin/ent/enttest
gremlin/ent/fieldtype
gremlin/ent/file
gremlin/ent/filetype
gremlin/ent/goods
gremlin/ent/group
gremlin/ent/groupinfo
gremlin/ent/hook
gremlin/ent/item
gremlin/ent/node
gremlin/ent/pet
gremlin/ent/predicate
gremlin/ent/runtime
gremlin/ent/spec
gremlin/ent/task
gremlin/ent/user
hooks/ent
hooks/ent/card
hooks/ent/enttest
hooks/ent/hook
hooks/ent/migrate
hooks/ent/predicate
hooks/ent/runtime
hooks/ent/schema
hooks/ent/user
idtype/ent
idtype/ent/enttest
idtype/ent/hook
idtype/ent/migrate
idtype/ent/predicate
idtype/ent/runtime
idtype/ent/schema
idtype/ent/user
json/ent
json/ent/enttest
json/ent/hook
json/ent/migrate
json/ent/predicate
json/ent/runtime
json/ent/schema
json/ent/user
migrate/entv1
migrate/entv1/car
migrate/entv1/enttest
migrate/entv1/hook
migrate/entv1/migrate
migrate/entv1/predicate
migrate/entv1/runtime
migrate/entv1/schema
migrate/entv1/user
migrate/entv2
migrate/entv2/car
migrate/entv2/enttest
migrate/entv2/group
migrate/entv2/hook
migrate/entv2/media
migrate/entv2/migrate
migrate/entv2/pet
migrate/entv2/predicate
migrate/entv2/runtime
migrate/entv2/schema
migrate/entv2/user
privacy/ent
privacy/ent/enttest
privacy/ent/hook
privacy/ent/migrate
privacy/ent/predicate
privacy/ent/privacy
privacy/ent/runtime
privacy/ent/schema
privacy/ent/task
privacy/ent/team
privacy/ent/user
privacy/rule
privacy/viewer
template/ent
template/ent/enttest
template/ent/group
template/ent/hook
template/ent/migrate
template/ent/pet
template/ent/predicate
template/ent/runtime
template/ent/schema
template/ent/user