[PCBC-164] Streamline tests Created: 14/Dec/12 Updated: 13/Mar/14 Resolved: 13/Mar/14
|Project:||Couchbase PHP client library|
|Reporter:||Mark Nunberg||Assignee:||Brett Lawson|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Tests right now are much slower than they should be, which also means that running them is turning into a much bigger hassle than it should be. Here are some things to do in order to make them quicker
1) Remove OO vs non-OO tests unless behavior is known to differ:
Right now all our OO functions and non-OO functions traverse exactly the same code paths (not as previously when there would be different code paths for each).
2) Move slow tests into their own categories: Simple mutation functions should not be intermixed with long things like key durability ops. These should be in separate files -- thus also allowing us to exclude them somehow (either via make test, or through runwrap/phpunit)
3) Tests which are expected to fail or are inconclusive should be marked as such.
|Comment by Trond Norbye [ 23/Aug/13 ]|
|The tests should be moved to use a mock server we can control to avoid having all of the sleeps in there...|
|Comment by Brett Lawson [ 13/Mar/14 ]|
|As of 2.0.0-dp1, all tests have been rewritten and behave correctly. Additionally, the procedure paths have been removed as of 2.0.0, significantly decreasing testing time.|