@@ -18,7 +18,7 @@ void main() {
18
18
var anException = Exception ();
19
19
20
20
setUp (() async {
21
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
21
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
22
22
await Sentry .init (
23
23
options: options,
24
24
(options) => {
@@ -137,7 +137,7 @@ void main() {
137
137
});
138
138
139
139
test ('null DSN' , () async {
140
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
140
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
141
141
expect (
142
142
() async => await Sentry .init (
143
143
options: options,
@@ -150,7 +150,7 @@ void main() {
150
150
151
151
test ('appRunner should be optional' , () async {
152
152
expect (Sentry .isEnabled, false );
153
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
153
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
154
154
await Sentry .init (
155
155
options: options,
156
156
(options) => options.dsn = fakeDsn,
@@ -159,7 +159,7 @@ void main() {
159
159
});
160
160
161
161
test ('empty DSN' , () async {
162
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
162
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
163
163
await Sentry .init (
164
164
options: options,
165
165
(options) => options.dsn = '' ,
@@ -170,7 +170,7 @@ void main() {
170
170
test ('empty DSN disables the SDK but runs the integrations' , () async {
171
171
final integration = MockIntegration ();
172
172
173
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
173
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
174
174
await Sentry .init (
175
175
options: options,
176
176
(options) {
@@ -183,7 +183,7 @@ void main() {
183
183
});
184
184
185
185
test ('close disables the SDK' , () async {
186
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
186
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
187
187
await Sentry .init (
188
188
options: options,
189
189
(options) => options.dsn = fakeDsn,
@@ -207,7 +207,7 @@ void main() {
207
207
test ('should install integrations' , () async {
208
208
final integration = MockIntegration ();
209
209
210
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
210
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
211
211
await Sentry .init (
212
212
options: options,
213
213
(options) {
@@ -221,7 +221,7 @@ void main() {
221
221
222
222
test ('should add default integrations' , () async {
223
223
late SentryOptions optionsReference;
224
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
224
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
225
225
await Sentry .init (
226
226
options: options,
227
227
(options) {
@@ -245,7 +245,7 @@ void main() {
245
245
}, onPlatform: {'browser' : Skip ()});
246
246
247
247
test ('should add only web compatible default integrations' , () async {
248
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
248
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
249
249
await Sentry .init (
250
250
options: options,
251
251
(options) {
@@ -261,7 +261,7 @@ void main() {
261
261
test ('should close integrations' , () async {
262
262
final integration = MockIntegration ();
263
263
264
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
264
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
265
265
await Sentry .init (
266
266
options: options,
267
267
(options) {
@@ -277,7 +277,7 @@ void main() {
277
277
});
278
278
279
279
test ('$DeduplicationEventProcessor is added on init' , () async {
280
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
280
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
281
281
await Sentry .init (
282
282
options: options,
283
283
(options) {
@@ -294,7 +294,7 @@ void main() {
294
294
final completer = Completer ();
295
295
var completed = false ;
296
296
297
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
297
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
298
298
final init = Sentry .init (
299
299
options: options,
300
300
(options) {
@@ -321,7 +321,7 @@ void main() {
321
321
final completer = Completer ();
322
322
var completed = false ;
323
323
324
- final options = SentryOptions (dsn: fakeDsn)..devMode = true ;
324
+ final options = SentryOptions (dsn: fakeDsn)..automatedTestMode = true ;
325
325
final init = Sentry .init (
326
326
options: options,
327
327
(options) {
@@ -345,11 +345,11 @@ void main() {
345
345
346
346
test ('options.environment debug' , () async {
347
347
final sentryOptions = SentryOptions (dsn: fakeDsn)
348
- ..devMode = true
348
+ ..automatedTestMode = true
349
349
..platformChecker = FakePlatformChecker .debugMode ();
350
350
351
351
final options = SentryOptions ();
352
- options.devMode = true ;
352
+ options.automatedTestMode = true ;
353
353
await Sentry .init (
354
354
(options) {
355
355
options.dsn = fakeDsn;
@@ -363,7 +363,7 @@ void main() {
363
363
test ('options.environment profile' , () async {
364
364
final sentryOptions =
365
365
SentryOptions (dsn: fakeDsn, checker: FakePlatformChecker .profileMode ())
366
- ..devMode = true ;
366
+ ..automatedTestMode = true ;
367
367
368
368
await Sentry .init (
369
369
(options) {
@@ -378,7 +378,7 @@ void main() {
378
378
test ('options.environment production (defaultEnvironment)' , () async {
379
379
final sentryOptions =
380
380
SentryOptions (dsn: fakeDsn, checker: FakePlatformChecker .releaseMode ())
381
- ..devMode = true ;
381
+ ..automatedTestMode = true ;
382
382
await Sentry .init (
383
383
(options) {
384
384
options.dsn = fakeDsn;
@@ -392,7 +392,7 @@ void main() {
392
392
test ('options.logger is set by setting the debug flag' , () async {
393
393
final sentryOptions =
394
394
SentryOptions (dsn: fakeDsn, checker: FakePlatformChecker .debugMode ())
395
- ..devMode = true ;
395
+ ..automatedTestMode = true ;
396
396
397
397
await Sentry .init (
398
398
(options) {
@@ -417,7 +417,7 @@ void main() {
417
417
418
418
test ('throw is handled and logged' , () async {
419
419
final sentryOptions = SentryOptions (dsn: fakeDsn)
420
- ..devMode = false
420
+ ..automatedTestMode = false
421
421
..debug = true
422
422
..logger = fixture.mockLogger;
423
423
@@ -439,7 +439,7 @@ void main() {
439
439
440
440
test ('throw is handled and logged' , () async {
441
441
final sentryOptions = SentryOptions (dsn: fakeDsn)
442
- ..devMode = false
442
+ ..automatedTestMode = false
443
443
..debug = true
444
444
..logger = fixture.mockLogger;
445
445
0 commit comments