@@ -32,15 +32,9 @@ TEST_LOGGER_OPTIONS := --logger "console;verbosity=detailed"
3232ifneq (,$(findstring NT,$(OS ) ) )
3333 BUILD_TARGETS := build-dotnet6 build-dotnet-framework
3434 TEST_TARGETS := test-dotnet6 test-dotnet-framework
35- TEST_TARGETS_AUTH_SERVICE := test-dotnet6-auth-service test-dotnet-framework-auth-service
36- TEST_TARGETS_CACHE_SERVICE := test-dotnet6-cache-service test-dotnet-framework-cache-service
37- TEST_TARGETS_TOPICS_SERVICE := test-dotnet6-topics-service test-dotnet-framework-topics-service
3835else
3936 BUILD_TARGETS := build-dotnet6
4037 TEST_TARGETS := test-dotnet6
41- TEST_TARGETS_AUTH_SERVICE := test-dotnet6-auth-service
42- TEST_TARGETS_CACHE_SERVICE := test-dotnet6-cache-service
43- TEST_TARGETS_TOPICS_SERVICE := test-dotnet6-topics-service
4438endif
4539
4640# Enable gRPC-Web if requested
@@ -98,6 +92,16 @@ restore:
9892test : ${TEST_TARGETS}
9993
10094
95+ # # Run unit and integration tests with consistent reads (conditioned by OS)
96+ prod-test :
97+ @echo " running tests with consistent reads..."
98+ ifeq (,$(findstring NT,$(OS ) ) )
99+ @CONSISTENT_READS=1 $(MAKE) ${TEST_TARGETS}
100+ else
101+ @set CONSISTENT_READS=1 && $(MAKE) ${TEST_TARGETS}
102+ endif
103+
104+
101105# # Run unit and integration tests on the .NET 6.0 runtime
102106test-dotnet6 :
103107 @echo " Running unit and integration tests on the .NET 6.0 runtime..."
@@ -147,11 +151,21 @@ test-dotnet-framework-auth-service:
147151
148152
149153# # Run auth service tests
150- test-auth-service : ${TEST_TARGETS_AUTH_SERVICE}
154+ test-auth-service :
155+ ifeq (,$(findstring NT,$(OS ) ) )
156+ @CONSISTENT_READS=1 $(MAKE) test-dotnet6-auth-service
157+ else
158+ @set CONSISTENT_READS=1 && $(MAKE) test-dotnet6-auth-service test-dotnet-framework-auth-service
159+ endif
151160
152161
153162# # Run cache service tests
154- test-cache-service : ${TEST_TARGETS_CACHE_SERVICE}
163+ test-cache-service :
164+ ifeq (,$(findstring NT,$(OS ) ) )
165+ @CONSISTENT_READS=1 $(MAKE) test-dotnet6-cache-service
166+ else
167+ @set CONSISTENT_READS=1 && $(MAKE) test-dotnet6-cache-service test-dotnet-framework-cache-service
168+ endif
155169
156170
157171# # Run leaderboard service tests
@@ -165,7 +179,12 @@ test-storage-service:
165179
166180
167181# # Run topics service tests
168- test-topics-service : ${TEST_TARGETS_TOPICS_SERVICE}
182+ test-topics-service :
183+ ifeq (,$(findstring NT,$(OS ) ) )
184+ @CONSISTENT_READS=1 $(MAKE) test-dotnet6-topics-service
185+ else
186+ @set CONSISTENT_READS=1 && $(MAKE) test-dotnet6-topics-service test-dotnet-framework-topics-service
187+ endif
169188
170189
171190# # Run example applications and snippets
0 commit comments