Skip to content

Commit 2fc4ce9

Browse files
committed
Automated unit testing (#153)
* Disable headed tests * Run unittests in the CI * Revert "Disable headed tests" This reverts commit b92e76f. * Disable test GetTextureRegistrar * Replace gclient sync with git checkout * Separate the run step
1 parent caf2121 commit 2fc4ce9

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

azure-pipelines.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,32 @@ jobs:
100100
failOnStderr: true
101101
- publish: $(Build.StagingDirectory)
102102
artifact: $(System.JobName)
103-
- job: release
103+
- job: test
104104
dependsOn: build
105+
pool:
106+
name: Default
107+
demands: agent.os -equals Linux
108+
timeoutInMinutes: 20
109+
cancelTimeoutInMinutes: 1
110+
steps:
111+
- checkout: self
112+
path: src/flutter
113+
- bash: |
114+
git checkout -- build/config/compiler/BUILD.gn
115+
flutter/tools/gn \
116+
--no-goma \
117+
--runtime-mode debug \
118+
--enable-fontconfig \
119+
--build-tizen-shell
120+
ninja -C out/host_debug
121+
displayName: Build unittests
122+
workingDirectory: $(Pipeline.Workspace)/src
123+
failOnStderr: true
124+
- bash: out/host_debug/flutter_tizen_unittests
125+
displayName: Run
126+
workingDirectory: $(Pipeline.Workspace)/src
127+
- job: release
128+
dependsOn: test
105129
pool:
106130
name: Default
107131
demands: agent.os -equals Linux

shell/platform/tizen/flutter_tizen_engine_unittest.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ TEST_F(FlutterTizenEngineTest, GetTextureRegistrar) {
7979
EXPECT_TRUE(engine_->GetTextureRegistrar() == nullptr);
8080
}
8181

82-
TEST_F(FlutterTizenEngineTestHeaded, GetTextureRegistrar) {
82+
// Disabled for headless testing.
83+
TEST_F(FlutterTizenEngineTestHeaded, DISABLED_GetTextureRegistrar) {
8384
EXPECT_TRUE(engine_->RunEngine(nullptr));
8485
EXPECT_TRUE(engine_->GetTextureRegistrar() != nullptr);
8586
}

0 commit comments

Comments
 (0)