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

[WIP] test: add integration tests #1363

Open
wants to merge 81 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
2dc23b1
test: add flexbox tests of blink.
temper357 Apr 27, 2022
bec0a65
Merge branch 'main' of github.com:openkraken/kraken into test/add-bli…
temper357 Apr 27, 2022
9fde788
feat: upgrade delete|copy|paste|cut|selectAll actions
temper357 May 10, 2022
867b2dc
feat: upgrade flutter version for integration tests
temper357 May 10, 2022
94f9fd1
feat: upgrade extend/move selection actions
temper357 May 10, 2022
1026bf8
test: update tests
temper357 May 12, 2022
2492ed1
test: add comment
temper357 May 13, 2022
edeab24
Merge remote-tracking branch 'origin/main' into feat/text-control-flu…
andycall Jul 3, 2022
80d81a2
fix: upgrade to android embedder.
andycall Jul 3, 2022
96c811e
fix: fix linter
andycall Jul 3, 2022
c468061
chore: fix dom specs.
andycall Jul 4, 2022
a836601
fix: add integration test linux support.
andycall Jul 4, 2022
c96c290
feat: add integration linux platform support.
andycall Jul 5, 2022
07e8153
feat: add flutter 3.0.4 support.
andycall Jul 6, 2022
0e17c83
feat: upgrade test ci.
andycall Jul 6, 2022
88f9f46
fix: fix example build.
andycall Jul 6, 2022
252f291
chore: upgrade integration tests.
andycall Jul 6, 2022
8763aec
feat: add more test steps in integration
andycall Jul 6, 2022
1f09006
fix: fix flutter unit test.
andycall Jul 6, 2022
c1a7c7e
fix: fix run bridge unit test
andycall Jul 6, 2022
ffddd2c
feat: migrate from openkraken/kraken
andycall Jul 26, 2022
02e80fe
add linux test
suyulin Jul 26, 2022
fef9451
Revert "add linux test"
suyulin Jul 26, 2022
f8885e4
chore: upgrade gooletest deps
andycall Jul 26, 2022
d573d29
fix: rename kraken to webf
andycall Jul 26, 2022
8a9fdf2
Merge remote-tracking branch 'origin/main' into feat/flutter-3
andycall Jul 26, 2022
fe19901
feat: migrate dart code from kraken to webf
andycall Jul 27, 2022
e03cf0c
fix test
suyulin Jul 27, 2022
8fc9add
fix test
suyulin Jul 27, 2022
d663103
fix test
suyulin Jul 27, 2022
a0a5a58
chore: migrate kraken to webf
andycall Jul 27, 2022
d2c6d22
Committing clang-format changes
Jul 27, 2022
baa38a7
Merge remote-tracking branch 'origin/feat/fix-test' into feat/flutter-3
andycall Jul 27, 2022
133a72b
Merge branch 'feat/flutter-3' of github.com:openwebf/webf into feat/f…
andycall Jul 27, 2022
c4ccb9c
fix test
suyulin Jul 27, 2022
9b85048
rename macos kraken -> webf
suyulin Jul 27, 2022
007d0ed
fix: fix macos build
andycall Jul 27, 2022
63837c2
revert test data
suyulin Jul 27, 2022
bdf14d7
Merge branch 'feat/flutter-3' of https://github.com/openwebf/webf int…
suyulin Jul 27, 2022
297a906
fix integration_tests
suyulin Jul 27, 2022
4bd0770
fix: fix macos links
andycall Jul 27, 2022
69baca8
fix: fix linux build
andycall Jul 27, 2022
14fb079
fix: fix bom specs.
andycall Jul 27, 2022
bc4c548
fix: fix bridge unit test ci
andycall Jul 27, 2022
33f13a3
fix: fix linux build
andycall Jul 28, 2022
5f52b79
fix: fix android java code
andycall Jul 28, 2022
66ffb90
fix: fix android build.
andycall Jul 28, 2022
5f1e8f4
chore: adjust image snapshot match ratio.
andycall Jul 28, 2022
427e242
Merge branch 'feat/flutter-3' of github.com:openwebf/webf into feat/f…
andycall Jul 28, 2022
5c56c5f
fix: fix ios build.
andycall Jul 29, 2022
d76330b
fix: fix linux build
andycall Jul 29, 2022
05c0c7d
fix: fix bridge unit test
andycall Jul 29, 2022
adaf8d6
fix: fix wifi connectivity.
andycall Jul 30, 2022
4862f54
feat: use another image match algorithm
andycall Jul 30, 2022
c080288
fix: fix image fit snapshots.
andycall Jul 30, 2022
db6f158
fix: fix textarea spec
devjiangzhou Aug 2, 2022
3d4ec5f
fix: replace span snapshot
devjiangzhou Aug 2, 2022
e97dea4
fix: fix lint
devjiangzhou Aug 2, 2022
2e6cd72
fix: fix widget element dispose cause child not deactivate.
andycall Aug 2, 2022
355d11e
Merge branch 'feat/flutter-3' of github.com:openwebf/webf into feat/f…
andycall Aug 2, 2022
93216e3
fix: fix lint
devjiangzhou Aug 2, 2022
d6080fa
fix: fix input layout error.
andycall Aug 2, 2022
338e751
Merge branch 'feat/flutter-3' of github.com:openwebf/webf into feat/f…
andycall Aug 2, 2022
7418fe3
fix: fix linux build
andycall Aug 2, 2022
d6aadf6
Merge pull request #1 from openwebf/feat/flutter-3
andycall Aug 2, 2022
c701e5c
Update bug_report.md
andycall Aug 3, 2022
84d818c
Update config.yml
andycall Aug 3, 2022
3fa95e7
Update feature_request.md
andycall Aug 3, 2022
b908b17
release: 0.12.0
andycall Aug 3, 2022
a40a351
Merge pull request #7 from openwebf/release/0.12.0
andycall Aug 3, 2022
a3b14f8
fix: fix publish
andycall Aug 3, 2022
b6679e9
Merge branch 'main' of github.com:openwebf/webf
andycall Aug 3, 2022
fe8bfa5
fix: add m1 mac arch for bridge
andycall Aug 4, 2022
a94bb71
release: 0.12.0+1
andycall Aug 4, 2022
54b2f58
fix: fix cppcheck actions
andycall Aug 4, 2022
c51f61d
Update README.md
andycall Aug 4, 2022
a4d555f
Update README.md
andycall Aug 4, 2022
136008f
Update README.md
andycall Aug 4, 2022
572e175
Merge pull request #9 from openwebf/fix/macos_build
andycall Aug 5, 2022
92f279b
Merge remote-tracking branch 'origin/main' into test/add-integration-…
andycall Aug 7, 2022
fdf49b7
fix: fix remaining test specs.
andycall Aug 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Kraken Contributing Guide
# OpenWebf Contributing Guide

0. Prerequisites
* [Node.js](https://nodejs.org/) v12.0 or later
* [Flutter](https://flutter.dev/docs/get-started/install) version in the `kraken/pubspec.yaml`
* [Flutter](https://flutter.dev/docs/get-started/install) version in the `webf/pubspec.yaml`
* [CMake](https://cmake.org/) v3.10.0 or later
* [Xcode](https://developer.apple.com/xcode/) (10.12) or later (Running on macOS or iOS)
* [Android NDK](https://developer.android.com/studio/projects/install-ndk) version `23.2.8568313` (Running on Android)
Expand Down Expand Up @@ -51,7 +51,7 @@

3. Start example
```shell
$ cd kraken/example
$ cd webf/example
$ flutter run
```

Expand Down
18 changes: 9 additions & 9 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---
name: 🐛 Bug 反馈 | Bug report
about: 创建反馈帮助我们完善 | Create a report to help us improve
name: Bug report
about: Create a report to help us improve
labels: bug

---

### 使用的 Kraken 版本 | What version of kraken are you using
<!-- Version: master/v0.7/v0.8 etc. -->
### What version of kraken are you using
<!-- Version: main/0.12 etc. -->


### 重现步骤 | Steps To Reproduce
<!-- 请提供重现问题的步骤,简洁清晰的重现步骤能够帮助我们更迅速地定位问题所在。 | Provide a detailed list of steps that reproduce the issue. -->
### Steps To Reproduce
<!-- Provide a detailed list of steps that reproduce the issue. -->


**重现代码 | Code example:** <!-- 请提供一个尽可能精简的最小化重现代码或是 GitHub 仓库的链接。 | Please provide a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. -->
**Code example:** <!-- Please provide a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. -->


**预期结果 | Expected results:** <!-- 期望的结果是什么?| what did you want to see? -->
**Expected results:** <!-- what did you want to see? -->


**实际结果 | Actual results:** <!-- 实际的结果是什么?what did you see? -->
**Actual results:** <!-- what did you see? -->

6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
blank_issues_enabled: true
contact_links:
- name: 📃 文档问题 | Documentation Issue
url: https://github.com/openkraken/website/issues/new
about: 文档问题请在这里反馈。 | Please file documentation issues here.
- name: 📃 Documentation Issue
url: https://github.com/openwebf/website/issues/new
about: Please file documentation issues here.

12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: 🚀 功能需求 | Feature request
about: 提供一个新想法 | Suggest an new idea
name: 🚀 Feature request
about: Suggest an new idea
labels: enhancement

---

## 使用场景 | Use case
## Use case

<!-- 请尽可能详尽地说明这个需求的用例和场景。 | Explain your use case behind this feature request. -->
<!-- Explain your use case behind this feature request. -->

## 提案 | Proposal
## Proposal

<!-- 描述一下你期望这个新功能的 API 是如何使用的,并提供一些代码示例。 | What does the proposed API look like? Describe how you propose to solve the problem and provide code samples of how the API would work once implemented. -->
<!-- What does the proposed API look like? Describe how you propose to solve the problem and provide code samples of how the API would work once implemented. -->
6 changes: 3 additions & 3 deletions .github/workflows/code_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
cppcheck:
runs-on: macos-10.15
runs-on: macos-12
name: Cppcheck
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -46,8 +46,8 @@ jobs:
inplace: True
- uses: EndBug/add-and-commit@v4
with:
author_name: openkraken-bot
author_email: openkraken@list.alibaba-inc.com
author_name: openwebf-bot
author_email: openwebf@openwebf.com
message: 'Committing clang-format changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/example_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
env:
nodeVersion: "16"
cmakeVersion: "3.22.x"
flutterVersion: "2.8.1"
flutterVersion: "3.0.4"

jobs:
build_android-app_in_macos:
Expand All @@ -35,7 +35,7 @@ jobs:

- name: android app build
run: |
cd kraken/
cd webf/
flutter pub get
cd example/
flutter build apk --release
Expand All @@ -60,7 +60,7 @@ jobs:

- name: ios app build
run: |
cd kraken/
cd webf/
flutter pub get
cd example/
flutter build ios --release --no-codesign
Expand All @@ -86,7 +86,7 @@ jobs:

- name: macos app build
run: |
cd kraken/
cd webf/
flutter pub get
cd example/
flutter build macos --release
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
- run: flutter doctor -v
- name: linux app build
run: |
cd kraken/
cd webf/
flutter pub get
cd example/
flutter build linux --release
36 changes: 31 additions & 5 deletions .github/workflows/integration_test_flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on: [workflow_dispatch, pull_request]
env:
nodeVersion: "16"
cmakeVersion: "3.22.x"
flutterVersion: "2.8.1"
flutterVersion: "3.0.4"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
setup:
runs-on: macos-latest
runs-on: macos-12
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
Expand All @@ -20,7 +20,7 @@ jobs:
JSON=$(node -e "console.log(JSON.stringify(require('./integration_tests/spec_group.json').map(j=>j.name)))")
echo "::set-output name=value::$(echo $JSON)"
build_bridge:
runs-on: macos-latest
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -35,8 +35,34 @@ jobs:
with:
name: macos_bridge_binary
path: bridge/build/macos/

bridge_unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.nodeVersion }}
- uses: jwlawson/actions-setup-cmake@v1.11
with:
cmake-version: ${{ env.cmakeVersion }}
- run: npm i
- run: ENABLE_ASAN=true npm run build:bridge:linux
- run: node scripts/run_bridge_unit_test.js

webf_unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutterVersion }}
- run: flutter config --enable-macos-desktop
- run: flutter doctor -v
- run: cd webf && flutter test

integration_test:
runs-on: macos-latest
runs-on: macos-12
needs: [ setup, build_bridge ]
strategy:
fail-fast: false
Expand Down Expand Up @@ -69,7 +95,7 @@ jobs:
if: steps.test.outcome != 'success'
run: exit 1
plugin_test:
runs-on: macos-latest
runs-on: macos-12
needs: [ build_bridge ]
steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/publish_to_dart_dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Kraken To pub.dev
name: Publish WebF To pub.dev

on:
release:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
name: ios_binary
path: bridge/build/ios/
build_android_binary:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down Expand Up @@ -99,8 +99,6 @@ jobs:
flutter-version: ${{ env.flutterVersion }}
- name: NPM INSTALL
run: npm install
- name: Set up nightly version
run: node scripts/set_up_nightly_release.js
- uses: actions/download-artifact@v2
with:
name: linux_binary
Expand All @@ -118,13 +116,13 @@ jobs:
name: android_binary
path: bridge/build/android/
- name: Prepare distribute binaries
run: node scripts/pre_publish_kraken.js
run: node scripts/pre_publish_webf.js
- name: Publish
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
flutter: true
skipTests: true
relativePath: ./kraken
relativePath: ./webf

2 changes: 1 addition & 1 deletion .github/workflows/publish_to_dart_dev_nightly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Kraken To pub.dev Nightly
name: Publish WebF To pub.dev Nightly

on:
schedule:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/sync_to_release.yml

This file was deleted.

Loading