User Tools

Site Tools


access:windows_cpp_unit_tests

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
access:windows_cpp_unit_tests [2015/08/28 18:28]
mjallison created
access:windows_cpp_unit_tests [2015/08/28 18:30] (current)
mjallison
Line 1: Line 1:
 The C++ version of the AccessLib API is provided with a base set of Google Test unit tests. 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. ​+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
  
   - Checkout the AccessTest project from Visual Source Safe   - Checkout the AccessTest project from Visual Source Safe
Line 9: Line 11:
   - Edit the server'​s server.props file to enable the Java & C++ unit testing configuration (connects to MySQL on dev.agtek.com)   - Edit the server'​s server.props file to enable the Java & C++ unit testing configuration (connects to MySQL on dev.agtek.com)
   - Run the server on the development machine (localhost). ​   - Run the server on the development machine (localhost). ​
-  - Open AccessSupport tool and configure the filestore for the customer "junitstorage" to give it at least 1 GB of storage.+  - Open AccessSupport tool and configure the filestore for the customer "junit" to give it at least 1 GB of storage.
   - Run the C++ unit tests with AccessTest/​Debug/​AccessTest.exe (best do this from a shell window so you can see output). ​   - Run the C++ unit tests with AccessTest/​Debug/​AccessTest.exe (best do this from a shell window so you can see output). ​
   - You may also run the unit tests via Visual Studio at this point to use the debugger. ​   - You may also run the unit tests via Visual Studio at this point to use the debugger. ​
access/windows_cpp_unit_tests.1440786489.txt.gz · Last modified: 2015/08/28 18:28 by mjallison