[PR #2106] [CLOSED] [feat] Load workspace during integration test from a file. #5097

Closed
opened 2026-03-23 22:17:12 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/2106
Author: @a-wallen
Created: 3/25/2023
Status: Closed

Base: mainHead: load_workspace_integration


📝 Commits (10+)

  • 2419ab4 feat: add archive for compression
  • 2d90926 feat: add service to manage zipped work spaces
  • 5518876 feat: export service in barrel file
  • 65939da feat: ignore .ephemeral directory
  • ad187cc feat: add first compressed workspace file
  • 3b3525c fix: directory path was wrong
  • 2c4cfe8 feat: add a somewhat useful test
  • 32392f1 fix: move to same file (delete later)
  • 099718f fix: use script path vs. working directory for CI
  • 286fa34 fix: read from asset bundle instead of file system

📊 Changes

12 files changed (+524 additions, -261 deletions)

View changed files

📝 .github/workflows/integration_test.yml (+3 -4)
📝 .github/workflows/release.yml (+23 -7)
📝 frontend/.vscode/tasks.json (+224 -222)
📝 frontend/appflowy_flutter/.gitignore (+2 -2)
frontend/appflowy_flutter/assets/test/workspaces/board.zip (+0 -0)
frontend/appflowy_flutter/integration_test/board_test.dart (+43 -0)
frontend/appflowy_flutter/integration_test/runner.dart (+17 -0)
frontend/appflowy_flutter/integration_test/util/data.dart (+63 -0)
📝 frontend/appflowy_flutter/integration_test/util/util.dart (+1 -0)
📝 frontend/appflowy_flutter/pubspec.yaml (+5 -26)
frontend/scripts/flutter_release_build/build_flowy.dart (+28 -0)
frontend/scripts/flutter_release_build/tool.dart (+115 -0)

📄 Description

Uses a workspace uploaded from a .zip file during an integration test. Before any tests are run, the TestWorkspaceService unzips the workspace folder into .ephemeral/$name. This folder is ignored by source. After the workspace is unzipped, the TestWorkspaceService tells the application to read the workspace from .ephemeral/$name

If contributors need to write tests for Kanban board, they can create a new AppFlowy workspace with just a Kanban board, compress the folder, and add it to test_workspaces under integration_test.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/2106 **Author:** [@a-wallen](https://github.com/a-wallen) **Created:** 3/25/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `load_workspace_integration` --- ### 📝 Commits (10+) - [`2419ab4`](https://github.com/AppFlowy-IO/AppFlowy/commit/2419ab4e3a561e33c11c287a52a454e18654089b) feat: add archive for compression - [`2d90926`](https://github.com/AppFlowy-IO/AppFlowy/commit/2d909268793d0043aa36a49aa3f0dee737fc1700) feat: add service to manage zipped work spaces - [`5518876`](https://github.com/AppFlowy-IO/AppFlowy/commit/551887616ca08f9aafb41484981d15b15c143b37) feat: export service in barrel file - [`65939da`](https://github.com/AppFlowy-IO/AppFlowy/commit/65939daa3072f9555ee3c773650583e76e7e56e4) feat: ignore .ephemeral directory - [`ad187cc`](https://github.com/AppFlowy-IO/AppFlowy/commit/ad187cc0c28cb274d4ed20e349b3acf91ce59f75) feat: add first compressed workspace file - [`3b3525c`](https://github.com/AppFlowy-IO/AppFlowy/commit/3b3525c28b562ba236270b4b2441b571bdf65d0d) fix: directory path was wrong - [`2c4cfe8`](https://github.com/AppFlowy-IO/AppFlowy/commit/2c4cfe88e27b634f2277c3dd0a3cd0e56f3a47fe) feat: add a somewhat useful test - [`32392f1`](https://github.com/AppFlowy-IO/AppFlowy/commit/32392f1fcbb070aa4228f1836d135231b040f16c) fix: move to same file (delete later) - [`099718f`](https://github.com/AppFlowy-IO/AppFlowy/commit/099718ff1b19c63b74a3bc66a0eff2313f2b4bb4) fix: use script path vs. working directory for CI - [`286fa34`](https://github.com/AppFlowy-IO/AppFlowy/commit/286fa3415b9129ecc1081bfa8f70a98e3186ddcd) fix: read from asset bundle instead of file system ### 📊 Changes **12 files changed** (+524 additions, -261 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/integration_test.yml` (+3 -4) 📝 `.github/workflows/release.yml` (+23 -7) 📝 `frontend/.vscode/tasks.json` (+224 -222) 📝 `frontend/appflowy_flutter/.gitignore` (+2 -2) ➕ `frontend/appflowy_flutter/assets/test/workspaces/board.zip` (+0 -0) ➕ `frontend/appflowy_flutter/integration_test/board_test.dart` (+43 -0) ➕ `frontend/appflowy_flutter/integration_test/runner.dart` (+17 -0) ➕ `frontend/appflowy_flutter/integration_test/util/data.dart` (+63 -0) 📝 `frontend/appflowy_flutter/integration_test/util/util.dart` (+1 -0) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+5 -26) ➕ `frontend/scripts/flutter_release_build/build_flowy.dart` (+28 -0) ➕ `frontend/scripts/flutter_release_build/tool.dart` (+115 -0) </details> ### 📄 Description Uses a workspace uploaded from a .zip file during an integration test. Before any tests are run, the `TestWorkspaceService` unzips the workspace folder into `.ephemeral/$name`. This folder is ignored by source. After the workspace is unzipped, the `TestWorkspaceService` tells the application to read the workspace from `.ephemeral/$name` If contributors need to write tests for Kanban board, they can create a new AppFlowy workspace with just a Kanban board, compress the folder, and add it to `test_workspaces` under `integration_test`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:17:12 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#5097
No description provided.