Changes between Version 18 and Version 19 of Obsolete/Development/Code/TestingComponents
- Timestamp:
- Apr 15, 2014, 7:24:05 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Obsolete/Development/Code/TestingComponents
v18 v19 1 1 = Writing automatic tests for NCM components = 2 3 '''This is work in progress!! ''' 4 5 [[TOC]] 2 [[TracNav]] 3 4 [[TOC(inline)]] 6 5 7 6 == Introduction == … … 39 38 * Tests are scripts with `.t` extension, stored under `src/test/perl`. 40 39 * Any resources needed for your tests, such as mockup profiles, should be stored in `src/test/resources`. 40 * `src/test/resources` must contain a file called `ccm.cfg` with the following contents: 41 {{{ 42 debug 0 43 get_timeout 1 44 profile https://www.google.com 45 cache_root target/test/cache 46 retrieve_wait 0 47 retrieve_retries 1 48 dbformat CDB_File 49 }}} 41 50 * There must be a smoke test, called `00-load.t` in that directory. Its only mission is to load your module. If you are using a recent enough version of the Maven build tools ('''not yet released'''), it is already there. 42 51