Skip to content

Commit 6bb70b6

Browse files
committed
enable coverage
1 parent 708aff3 commit 6bb70b6

File tree

2 files changed

+41
-15
lines changed

2 files changed

+41
-15
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8032,149 +8032,173 @@ tasks:
80328032
- sync_async
80338033

80348034
# Server version tests
8035-
- name: test-python3.9-sharded-cluster-auth-ssl
8035+
- name: test-python3.9-sharded-cluster-auth-ssl-cov
80368036
commands:
80378037
- func: run server
80388038
vars:
80398039
TOPOLOGY: sharded_cluster
80408040
AUTH: auth
80418041
SSL: ssl
8042+
COVERAGE: "1"
80428043
- func: run tests
80438044
vars:
80448045
AUTH: auth
80458046
SSL: ssl
8047+
PYTHON_VERSION: "3.9"
80468048
tags: [server-version]
8047-
- name: test-python3.10-sharded-cluster-auth-ssl
8049+
- name: test-python3.10-sharded-cluster-auth-ssl-cov
80488050
commands:
80498051
- func: run server
80508052
vars:
80518053
TOPOLOGY: sharded_cluster
80528054
AUTH: auth
80538055
SSL: ssl
8056+
COVERAGE: "1"
80548057
- func: run tests
80558058
vars:
80568059
AUTH: auth
80578060
SSL: ssl
8061+
PYTHON_VERSION: "3.10"
80588062
tags: [server-version]
8059-
- name: test-python3.11-sharded-cluster-auth-ssl
8063+
- name: test-python3.11-sharded-cluster-auth-ssl-cov
80608064
commands:
80618065
- func: run server
80628066
vars:
80638067
TOPOLOGY: sharded_cluster
80648068
AUTH: auth
80658069
SSL: ssl
8070+
COVERAGE: "1"
80668071
- func: run tests
80678072
vars:
80688073
AUTH: auth
80698074
SSL: ssl
8075+
PYTHON_VERSION: "3.11"
80708076
tags: [server-version]
8071-
- name: test-python3.12-sharded-cluster-auth-ssl
8077+
- name: test-python3.12-sharded-cluster-auth-ssl-cov
80728078
commands:
80738079
- func: run server
80748080
vars:
80758081
TOPOLOGY: sharded_cluster
80768082
AUTH: auth
80778083
SSL: ssl
8084+
COVERAGE: "1"
80788085
- func: run tests
80798086
vars:
80808087
AUTH: auth
80818088
SSL: ssl
8089+
PYTHON_VERSION: "3.12"
80828090
tags: [server-version]
8083-
- name: test-python3.13-sharded-cluster-auth-ssl
8091+
- name: test-python3.13-sharded-cluster-auth-ssl-cov
80848092
commands:
80858093
- func: run server
80868094
vars:
80878095
TOPOLOGY: sharded_cluster
80888096
AUTH: auth
80898097
SSL: ssl
8098+
COVERAGE: "1"
80908099
- func: run tests
80918100
vars:
80928101
AUTH: auth
80938102
SSL: ssl
8103+
PYTHON_VERSION: "3.13"
80948104
tags: [server-version]
8095-
- name: test-pypy3.10-sharded-cluster-auth-ssl
8105+
- name: test-pypy3.10-sharded-cluster-auth-ssl-cov
80968106
commands:
80978107
- func: run server
80988108
vars:
80998109
TOPOLOGY: sharded_cluster
81008110
AUTH: auth
81018111
SSL: ssl
8112+
COVERAGE: "1"
81028113
- func: run tests
81038114
vars:
81048115
AUTH: auth
81058116
SSL: ssl
8117+
PYTHON_VERSION: pypy3.10
81068118
tags: [server-version]
8107-
- name: test-python3.9-standalone-noauth-nossl
8119+
- name: test-python3.9-standalone-noauth-nossl-cov
81088120
commands:
81098121
- func: run server
81108122
vars:
81118123
TOPOLOGY: standalone
81128124
AUTH: noauth
81138125
SSL: nossl
8126+
COVERAGE: "1"
81148127
- func: run tests
81158128
vars:
81168129
AUTH: noauth
81178130
SSL: nossl
8131+
PYTHON_VERSION: "3.9"
81188132
tags: [server-version]
8119-
- name: test-python3.10-replica-set-noauth-ssl
8133+
- name: test-python3.10-replica-set-noauth-ssl-cov
81208134
commands:
81218135
- func: run server
81228136
vars:
81238137
TOPOLOGY: replica_set
81248138
AUTH: noauth
81258139
SSL: ssl
8140+
COVERAGE: "1"
81268141
- func: run tests
81278142
vars:
81288143
AUTH: noauth
81298144
SSL: ssl
8145+
PYTHON_VERSION: "3.10"
81308146
tags: [server-version]
8131-
- name: test-python3.11-standalone-noauth-nossl
8147+
- name: test-python3.11-standalone-noauth-nossl-cov
81328148
commands:
81338149
- func: run server
81348150
vars:
81358151
TOPOLOGY: standalone
81368152
AUTH: noauth
81378153
SSL: nossl
8154+
COVERAGE: "1"
81388155
- func: run tests
81398156
vars:
81408157
AUTH: noauth
81418158
SSL: nossl
8159+
PYTHON_VERSION: "3.11"
81428160
tags: [server-version]
8143-
- name: test-python3.12-replica-set-noauth-ssl
8161+
- name: test-python3.12-replica-set-noauth-ssl-cov
81448162
commands:
81458163
- func: run server
81468164
vars:
81478165
TOPOLOGY: replica_set
81488166
AUTH: noauth
81498167
SSL: ssl
8168+
COVERAGE: "1"
81508169
- func: run tests
81518170
vars:
81528171
AUTH: noauth
81538172
SSL: ssl
8173+
PYTHON_VERSION: "3.12"
81548174
tags: [server-version]
8155-
- name: test-python3.13-standalone-noauth-nossl
8175+
- name: test-python3.13-standalone-noauth-nossl-cov
81568176
commands:
81578177
- func: run server
81588178
vars:
81598179
TOPOLOGY: standalone
81608180
AUTH: noauth
81618181
SSL: nossl
8182+
COVERAGE: "1"
81628183
- func: run tests
81638184
vars:
81648185
AUTH: noauth
81658186
SSL: nossl
8187+
PYTHON_VERSION: "3.13"
81668188
tags: [server-version]
8167-
- name: test-pypy3.10-replica-set-noauth-ssl
8189+
- name: test-pypy3.10-replica-set-noauth-ssl-cov
81688190
commands:
81698191
- func: run server
81708192
vars:
81718193
TOPOLOGY: replica_set
81728194
AUTH: noauth
81738195
SSL: ssl
8196+
COVERAGE: "1"
81748197
- func: run tests
81758198
vars:
81768199
AUTH: noauth
81778200
SSL: ssl
8201+
PYTHON_VERSION: pypy3.10
81788202
tags: [server-version]
81798203

81808204
# Serverless tests

.evergreen/scripts/generate_config.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,12 @@ def create_server_version_tasks():
594594
else:
595595
auth = "auth"
596596
ssl = "ssl"
597-
name = get_task_name("test", python=python, topology=topology, auth=auth, ssl=ssl)
598-
server_vars = dict(TOPOLOGY=topology, AUTH=auth, SSL=ssl)
597+
name = get_task_name(
598+
"test", python=python, topology=topology, auth=auth, ssl=ssl, coverage="coverage"
599+
)
600+
server_vars = dict(TOPOLOGY=topology, AUTH=auth, SSL=ssl, COVERAGE="1")
599601
server_func = FunctionCall(func="run server", vars=server_vars)
600-
test_vars = dict(AUTH=auth, SSL=ssl)
602+
test_vars = dict(AUTH=auth, SSL=ssl, PYTHON_VERSION=python)
601603
test_func = FunctionCall(func="run tests", vars=test_vars)
602604
tasks.append(EvgTask(name=name, tags=tags, commands=[server_func, test_func]))
603605
return tasks

0 commit comments

Comments
 (0)