tests for xorm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
Lunny Xiao cb53f0452a
upgrade to xorm v1.0.1
5 months ago
mssql update dependency packages 10 months ago
mymysql update dependency packages 10 months ago
mysql upgrade to xorm v1.0.1 5 months ago
oci8 upgrade to xorm v1.0.1 5 months ago
pgx upgrade to xorm v1.0.1 5 months ago
postgres upgrade to xorm v1.0.1 5 months ago
sqlite3 upgrade to xorm v1.0.1 5 months ago
testdata resolved #9 4 years ago
.gitignore Add db journal to .gitignore 4 years ago
README.md update dependency packages 10 months ago
base.go upgrade to xorm v1.0.1 5 months ago
benchmark.bat move tests from xorm to seperated repository 6 years ago
benchmark.go update dependency packages 10 months ago
benchmark.sh move tests from xorm to seperated repository 6 years ago
cmdline.go Add `-port' command line option to tests 4 years ago
dynamic_path_test.sh remove echo 6 years ago
go.mod upgrade to xorm v1.0.1 5 months ago
go.sum upgrade to xorm v1.0.1 5 months ago
mssql.sh add test scripts 6 years ago
mymysql.sh add test scripts 6 years ago
mysql.sh add test scripts 6 years ago
oci8.sh add oci8 tests 5 years ago
pgx.sh updated tests for xorm builder branch 4 years ago
postgres.sh add test scripts 6 years ago
run_tests.sh tidy up tests to per test per folder 6 years ago
run_tests_docker.sh Add `run_tests_docker.sh' and update README 4 years ago
sqlite3.sh add test scripts 6 years ago
testCache.go upgrade to xorm v1.0.1 5 months ago
testCascade.go upgrade to xorm v1.0.1 5 months ago
testCount.go upgrade to xorm v1.0.1 5 months ago
testCustomTypes.go upgrade to xorm v1.0.1 5 months ago
testDelete.go upgrade to xorm v1.0.1 5 months ago
testExec.go update dependency packages 10 months ago
testExtends.go upgrade to xorm v1.0.1 5 months ago
testFind.go upgrade to xorm v1.0.1 5 months ago
testForUpdate.go upgrade to xorm v1.0.1 5 months ago
testGet.go upgrade to xorm v1.0.1 5 months ago
testID.go upgrade to xorm v1.0.1 5 months ago
testIn.go upgrade to xorm v1.0.1 5 months ago
testInsert.go upgrade to xorm v1.0.1 5 months ago
testIterate.go update dependency packages 10 months ago
testJoin.go upgrade to xorm v1.0.1 5 months ago
testJson.go upgrade to xorm v1.0.1 5 months ago
testMeta.go upgrade to xorm v1.0.1 5 months ago
testNullStruct.go upgrade to xorm v1.0.1 5 months ago
testProcessors.go upgrade to xorm v1.0.1 5 months ago
testQuery.go update dependency packages 10 months ago
testSums.go upgrade to xorm v1.0.1 5 months ago
testTransaction.go update dependency packages 10 months ago
testTypes.go upgrade to xorm v1.0.1 5 months ago
testUpdate.go upgrade to xorm v1.0.1 5 months ago
testVersion.go upgrade to xorm v1.0.1 5 months ago

README.md

xorm tests

Xorm is a simple and powerful ORM for Go.

Build Status Go Doc

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