User Tools

Site Tools


access:windows_cpp_unit_tests

This is an old revision of the document!


The C++ version of the AccessLib API is provided with a base set of Google Test unit tests.

Running these on Windows requires a fair amount of setup. The C++ unit tests are relying upon a running server, with some presupplied data (from the Java Unit Tests). The server should be run from Eclipse on the same machine as the unit tests, but needs to connect to the same MySQL instance used in the Java Unit Tests (usually dev.agtek.com).

Some manual fixes to the server instance are needed.

  1. Checkout the AccessTest project from Visual Source Safe
  2. Build this project (Debug mode is fine)
  3. Checkout the server source from GIT and build in Eclipse.
  4. Run the server Java unit tests.
  5. Edit the server's server.props file to enable the Java & C++ unit testing configuration (connects to MySQL on dev.agtek.com)
  6. Run the server on the development machine (localhost).
  7. Open AccessSupport tool and configure the filestore for the customer “junitstorage” to give it at least 1 GB of storage.
  8. Run the C++ unit tests with AccessTest/Debug/AccessTest.exe (best do this from a shell window so you can see output).
  9. You may also run the unit tests via Visual Studio at this point to use the debugger.
access/windows_cpp_unit_tests.1440786597.txt.gz · Last modified: 2015/08/28 18:29 by mjallison