tests for xorm

xorm tests

Xorm is a simple and powerful ORM for Go.

Build Status Go Walker Bitdeli Badge

This is the tests project for xorm.

Please add your test codes here if you want to pull request to xorm.

How to run the tests

  • test sqlite
  • test mysql or mymysql

Create empty databases xorm_test, xorm_test1, xorm_test2, xorm_test3 on your mysql server and make an account root, and let passwd empty on localhost, and then run:

  • test postgres

Create empty database xorm_test on your postgres and and let passwd empty for default account on localhost, and then run:


Running tests by name

You can also use run_tests.sh script:

./run_tests.sh <db>  # e.g. mysql

Run all tests:


Running tests using docker

You can also use run_tests_docker.sh script that will pull and run preconfigured images with database engines, and run tests on them. With this approach, you don’t need to configure anything, just install docker and run the script.

Run specific test:

./run_tests_docker.sh <db>  # e.g. mysql

Run specific test with given database version:

./run_tests_docker.sh <db>:<version>  # e.g. mysql:5.5

Run all tests:


Related Repositories



Sublime Text 2 plugin for running ruby tests! (Unit, RSpec, Cucumber) ...



screenshot-test-for-android is a library that can generate fast deterministic screenshots while running instrumentation tests in android. ...



Locate your slowest tests. ...



AMD compliance tests ...



[STALE] Tests for the coremob specs. ...

Top Contributors

lunny nashtsai gavv winxxp oinume evalphobia


-   v0.5.6 zip tar
-   v0.5.4 zip tar
-   v0.5.2 zip tar