Skip to content

GORM Playground (Please Create PR for this project to report issues)

License

Notifications You must be signed in to change notification settings

newtonnthiga/go-gorm-playground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GORM Playground

GORM Playground can be used to play GORM and reports issues, if you encounter a bug in GORM, please report it at https://github.com/go-gorm/gorm/issues with the Playground Pull Request's link

test status

Quick Start

3. Install docker-compose

https://docs.docker.com/compose/install/

4. Run tests with lastest GORM and all drivers
# run tests (retry if failed due to preparing the testing database)
./test.sh

# Run tests with cached GORM and latest drivers
GORM_ENABLE_CACHE=true ./test.sh

# Run tests with specfied database
GORM_DIALECT=mysql go test
5. Modify tests and make it fail

Advanced Usage

We are using the following configuration run your code (GORM's latest master branch, latest database drivers: sqlite, mysql, postgres, sqlserver), you could change the configuration in file main_test.go

// GORM_REPO: https://github.com/go-gorm/gorm.git
// GORM_BRANCH: master
// TEST_DRIVERS: sqlite, mysql, postgres, sqlserver

We have prepared some structs with relationships in https://github.com/go-gorm/playground/blob/master/models.go that you can use for your tests

Happy Hacking!

About

GORM Playground (Please Create PR for this project to report issues)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 74.9%
  • Shell 25.1%