[CSHARP-477] Improve Unit Test Coverage for MongoServer Created: 28/May/12 Updated: 02/Apr/15 Resolved: 29/May/12 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.4.2 |
| Fix Version/s: | 1.5 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Brian Knight | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | tests | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All environments |
||
| Description |
|
Noted the existing unit test set for MongoServer is pretty weak, as well as notated with "TODO: more tests for MongoServer". Create and consolidate the body of unit tests for MongoServer. |
| Comments |
| Comment by Robert Stam [ 29/May/12 ] |
|
I've added some more unit tests to MongoServer. Note however, that all the unit tests in the DriverUnitTests project are run against a single instance server, so this file is not the place where the replica set features of MongoServer are tested. |
| Comment by Robert Stam [ 29/May/12 ] |
|
One reason this TODO hasn't been higher priority is that most of the MongoServer methods are heavily used by all the other unit tests so coverage is actually pretty good already. But I would agree that more unit tests targeting MongoServer directly are a good idea. |