Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a9838a9
feat: migrates to package:web and js_interop
josh-burton May 20, 2024
9a156fb
fix: enhances comment
josh-burton Jun 4, 2024
4266881
chore: Adds changelog
josh-burton Jun 4, 2024
7dfc42e
chore: formatting
josh-burton Jun 4, 2024
2bf4b4f
fix: changes min flutter version to 3.13.0 and dart sdk 3.1.0 to be c…
josh-burton Jun 4, 2024
c4f9ba0
Merge branch 'main' into package-web
vaind Jun 20, 2024
3d07b8e
compat with dart:html & dart:web
vaind Jun 20, 2024
75014d1
fixups
vaind Jun 20, 2024
f945e9a
more fixups
vaind Jun 20, 2024
de46ce3
analyzer
vaind Jun 20, 2024
99391f4
chore: changelog entry
vaind Jun 20, 2024
31bac33
Merge branch 'main' into package-web
vaind Jun 20, 2024
80a0e2b
run dart test for all supported dart version
vaind Jun 20, 2024
e3e6c56
update web example tests
vaind Jun 20, 2024
fe1e91d
update ci
vaind Jun 20, 2024
f170986
update deps so that we can run test with old dart versions
vaind Jun 20, 2024
d05cf9d
fix ci
vaind Jun 20, 2024
78a78a2
fix web enricher test
vaind Jun 20, 2024
ac61607
fix ci
vaind Jun 20, 2024
8317804
ci fixes
vaind Jun 20, 2024
f5f9c7b
ignore pana error
vaind Jun 20, 2024
74e5f50
Merge branch 'main' into package-web
vaind Jun 20, 2024
f6e32d0
fix CI
vaind Jun 20, 2024
2c52eeb
fix ci
vaind Jun 20, 2024
f9d80f0
remove dart 2.17 build
vaind Jun 20, 2024
b19f0ad
fixes
vaind Jun 20, 2024
529e4f4
fix CI
vaind Jun 20, 2024
5750e5c
test dart2wasm
vaind Jun 20, 2024
5375cf2
cleanup
vaind Jun 20, 2024
a939163
disable dart2wasm on windows
vaind Jun 20, 2024
cec7756
fix tests for wasm
vaind Jun 20, 2024
3216f42
Merge branch 'main' into package-web
vaind Jun 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update web example tests
  • Loading branch information
vaind committed Jun 20, 2024
commit e3e6c56b2b366c037f6c1d98f029eb20dbab0cc2
1 change: 1 addition & 0 deletions dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ dev_dependencies:
collection: ^1.16.0
coverage: ^1.3.0
intl: '>=0.17.0 <1.0.0'
version: ^3.0.2
14 changes: 10 additions & 4 deletions dart/test/example_web_compile_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:version/version.dart';
import 'package:test/test.dart';

// Tests for the following issue
// https://github.com/getsentry/sentry-dart/issues/1893
void main() {
group('Compile example_web', () {
final dartVersion = Version.parse(Platform.version.split(' ')[0]);
final exampleAppDir = dartVersion < Version.parse('3.3.0')
? 'example_web_legacy'
: 'example_web';

group('Compile $exampleAppDir', () {
test(
'dart pub get and compilation should run successfully',
() async {
final result = await _runProcess('dart pub get',
workingDirectory: _exampleWebWorkingDir);
expect(result.exitCode, 0,
reason: 'Could run `dart pub get` for example_web. '
reason: 'Could run `dart pub get` for $exampleAppDir. '
'Likely caused by outdated dependencies');
// running this test locally require clean working directory
final cleanResult = await _runProcess('dart run build_runner clean',
Expand All @@ -27,7 +33,7 @@ void main() {
'dart run build_runner build -r web -o build --delete-conflicting-outputs',
workingDirectory: _exampleWebWorkingDir);
expect(compileResult.exitCode, 0,
reason: 'Could not compile example_web project');
reason: 'Could not compile $exampleAppDir project');
expect(
compileResult.stdout,
isNot(contains(
Expand Down Expand Up @@ -77,7 +83,7 @@ Future<_CommandResult> _runProcess(String command,
}

String get _exampleWebWorkingDir {
return '${Directory.current.path}${Platform.pathSeparator}example_web';
return '${Directory.current.path}${Platform.pathSeparator}$exampleAppDir';
}

class _CommandResult {
Expand Down