[SERVER-25788] Accept command line arguments in unit tests Created: 25/Aug/16  Updated: 27/May/18  Resolved: 26/Jul/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.11

Type: New Feature Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: neweng, tig-unittests
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-35203 Unittests accept --logLevel Closed
Duplicate
is duplicated by SERVER-29977 Add unittest command line testname fi... Closed
Gantt Dependency
has to be done before SERVER-30137 Re-enable endSessionDoesntDoubleClose... Closed
Related
is related to SERVER-15558 Enable log level setting for unit tests Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2016-08-29, Repl 2017-07-31
Participants:

 Description   

Our unit test framework supports the filtering of test suite and test cases. Enabling it with command line options can make manual unit testing easier, especially when the unit test is very long. The following options are supported.

--suite <SUITE>, specify the suite name that you want to run.
--filter <FILTER>, specify a substring of the test cases' name that you're interested in.
--list, list all test suites in this unit test.
--repeat <TIMES>, repeat the unit tests for a given times.



 Comments   
Comment by Githook User [ 25/Jul/17 ]

Author:

{'email': 'siyuan.zhou@mongodb.com', 'username': 'visualzhou', 'name': 'Siyuan Zhou'}

Message: SERVER-25788 Fix linking of options_parser_init.
Branch: master
https://github.com/mongodb/mongo/commit/787e0f9396476ead735d17bcf85ddde9af46bcda

Comment by Githook User [ 21/Jul/17 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-25788 Accept command line arguments in unit tests

This reverts commit eb5283b46b7599e07793c8695c74880a10f3998e.
Branch: master
https://github.com/mongodb/mongo/commit/db9f34fdec33e2250dad53d7d2d3a829507b3f95

Comment by Githook User [ 26/Aug/16 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: Revert "SERVER-25788 Accept command line arguments in unit tests"

This reverts commit eb4ce92e70deca54682bcd04baa3bd770faa7476.
Branch: master
https://github.com/mongodb/mongo/commit/eb5283b46b7599e07793c8695c74880a10f3998e

Comment by Githook User [ 25/Aug/16 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-25788 Accept command line arguments in unit tests
Branch: master
https://github.com/mongodb/mongo/commit/eb4ce92e70deca54682bcd04baa3bd770faa7476

Generated at Thu Feb 08 04:10:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.