-
Notifications
You must be signed in to change notification settings - Fork 82
Create test_common package #1945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
036899b
to
e781731
Compare
@@ -9,14 +9,13 @@ import 'dart:convert'; | |||
import 'dart:io'; | |||
|
|||
import 'package:dwds/expression_compiler.dart'; | |||
import 'package:dwds/sdk_configuration.dart'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be test_sdk_configuration
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should not need any extra assets, so it is actually good to test it with the current SDK layout. I'll add a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait it is currently running with weak null safety! Will update (so then the statement that it does not need any extra assets will be true:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question but looks good!
Create test_common package:
TestSdkLayout
with test-only sdk layout paths totest_common
.SdkAssetGenerator
, logging totest_common
.dwds/test/fixtures/logging.dart
totest_common
.test_common
tests.test_common
.frontend_server_common
useTestSdkLayout
instead of hard coded layout strings.Note: this change allows us to enable weak null safety tests for webdev (to be addressed in a separate PR).
Towards: #1878
Closes: #1892