tests

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
 ./sqlite3.sh
  • 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:

 ./mysql.sh
 ./mymysql.sh
  • test postgres

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

 ./postgres.sh

Running tests by name

You can also use run_tests.sh script:

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

Run all tests:

./run_tests.sh

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:

./run_tests_docker.sh

Related Repositories

sublime-text-2-ruby-tests

sublime-text-2-ruby-tests

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

screenshot-tests-for-android

screenshot-tests-for-android

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

django-slow-tests

django-slow-tests

Locate your slowest tests. ...

amdjs-tests

amdjs-tests

AMD compliance tests ...

coremob-tests

coremob-tests

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


Top Contributors

lunny nashtsai gavv winxxp oinume evalphobia

Releases

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