[PCBC-164] Streamline tests Created: 14/Dec/12  Updated: 13/Mar/14  Resolved: 13/Mar/14

Status: Resolved
Project: Couchbase PHP client library
Component/s: library
Affects Version/s: 1.1.0
Fix Version/s: 2.0.0-dp1
Security Level: Public

Type: Task Priority: Minor
Reporter: Mark Nunberg Assignee: Brett Lawson
Resolution: Fixed Votes: 0
Labels: None
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.
Generated at Wed Sep 17 07:22:06 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.