Skip to content
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

Add Flutter DevTools tests to test registry. #267

Merged
merged 34 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
38c3ce8
Add Flutter DevTools tests to test registry.
kenzieschmoll Jun 9, 2023
6ca3671
new line
kenzieschmoll Jun 9, 2023
01ff8f7
use local branch
kenzieschmoll Jun 9, 2023
6b2f20a
fix
kenzieschmoll Jun 9, 2023
3a667d7
change hash
kenzieschmoll Jun 9, 2023
ca64457
fix hash
kenzieschmoll Jun 9, 2023
d15dbdf
new hash
kenzieschmoll Jun 9, 2023
42480e4
new hash
kenzieschmoll Jun 12, 2023
b252a26
new
kenzieschmoll Jun 12, 2023
8484dd5
test integration tests
kenzieschmoll Jun 16, 2023
85490f5
fix hash and add update for new packages
kenzieschmoll Sep 27, 2023
1d44db8
gen
kenzieschmoll Sep 27, 2023
141ee77
run analyze
kenzieschmoll Sep 27, 2023
c923a1c
fix analyze
kenzieschmoll Sep 27, 2023
9b6d711
analyze w script
kenzieschmoll Sep 27, 2023
49784b3
chmod
kenzieschmoll Sep 27, 2023
e3adeb1
pub get
kenzieschmoll Sep 27, 2023
ff2ed6e
swap order
kenzieschmoll Sep 27, 2023
3599a93
hash with -e
kenzieschmoll Sep 28, 2023
d9848e5
delete bad test
kenzieschmoll Sep 28, 2023
992166e
add versions
kenzieschmoll Sep 28, 2023
97d674e
next
kenzieschmoll Sep 28, 2023
ac63056
ordering
kenzieschmoll Sep 28, 2023
94726cb
Use setup step
kenzieschmoll Oct 2, 2023
4d3a304
2 iterations
kenzieschmoll Oct 3, 2023
ed5978a
fix comment
kenzieschmoll Oct 3, 2023
00f6818
try to run all tests
kenzieschmoll Oct 4, 2023
354e8c4
reduce to 1
kenzieschmoll Oct 4, 2023
5d7ef17
only run integration tests
kenzieschmoll Oct 5, 2023
b241bf1
new hash
kenzieschmoll Oct 5, 2023
b27d865
new hash and add todo
kenzieschmoll Oct 5, 2023
e7cf35a
rename file
kenzieschmoll Oct 5, 2023
7ada7d4
use flutter devtools master hash
kenzieschmoll Oct 5, 2023
46cace6
fix script name
kenzieschmoll Oct 9, 2023
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ parallel to your `flutter` repository checkout, then, from this
directory, run:

```
pushd ../flutter/dev/customer_testing && pub get && popd
pushd ../flutter/dev/customer_testing && flutter pub get && popd
../flutter/bin/cache/dart-sdk/bin/dart ../flutter/dev/customer_testing/run_tests.dart --skip-template --verbose registry/*.test
```

Expand Down
23 changes: 23 additions & 0 deletions registry/flutter_devtools.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Tests from https://github.com/flutter/devtools

[email protected]

fetch=git clone https://github.com/flutter/devtools.git tests
fetch=git -C tests checkout 26d2093276fcab94c8cc24b50548d1ea66c72d93

setup.linux=./tool/refresh.sh >> output.txt

update=packages/devtools_app
update=packages/devtools_app_shared
update=packages/devtools_extensions
update=packages/devtools_shared
update=packages/devtools_test

test.linux=./tool/flutter_customer_tests/analyze.sh

# TODO(kenz): if we can exclude golden image tests (or switch to Mock Canvas?)
# run these tests on all platforms.
test.linux=./tool/flutter_customer_tests/test.sh

# Reduce number of iterations to 1 because these tests take longer than our recommended maximum.
iterations=1
22 changes: 22 additions & 0 deletions registry/template.test
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,28 @@ [email protected]
fetch=git clone https://github.com/USERNAME/REPOSITORY.git tests
fetch=git -C tests checkout 0123456789abcdef0123456789abcdef01234567

# The "setup" lines specify commands to run before the "update" or
# "test" lines are handled. This is useful for things like generating
# mocks before running the "update" and "test" steps.
#
# Commands specified using "setup=" must work identically on Windows,
# macOS, and Linux. This generally means you want to limit yourself to
# simple commands. For anything more elaborate, consider creating a
# "setup.sh" shell script to run on macOS and Linux and a "setup.bat"
# batch file to run on Windows (referencing it without the extension
# here should mean that in runs the shell script on Unix systems and
# the batch file on Windows, because of how Windows looks up commands).
# On Windows, these commands are executed via
# `CMD.EXE /S /C "command..."`.
#
# Alternatively, you can use a platform-specific setup line:
# setup.windows= to run a command on Windows only.
# setup.macos= to run a command on MacOS only.
# setup.linux= to run a command on Linux only.
# setup.posix= to run a command on MacOS and Linux only.
setup.posix=setup.sh
setup.windows=setup.bat

# The "update" lines specify paths (relative to the newly created
# "tests" directory) in which to run a flutter command to
# automatically update the code to fix breaking changes. The command
Expand Down