Skip to content

Development

Dmitry Romanov edited this page Mar 29, 2016 · 5 revisions

1. Establishing unit tests

  1. Create MySQL database for the test purposes

    mysql -u root -p
    CREATE SCHEMA test_rcdb;
    CREATE USER test_rcdb;
    GRANT ALL PRIVILEGES ON test_rcdb.* TO 'test_rcdb'@'localhost';
  2. Set RCDB_MYSQL_TEST_CONNECTION environment variable

    export RCDB_MYSQL_TEST_CONNECTION="mysql://test_rcdb@localhost/test_rcdb"
    
  3. run create_test_database.py

    python $RCDB_HOME/python/tests/create_test_database.py $RCDB_MYSQL_TEST_CONNECTION
  4. Run test_all_rcdb

P.S.