Configuring Flutter Tests on GitLab CI

Pradap Pandiyan
3 min readFeb 17, 2024

Continuous Integration (CI) is a crucial practice in software development, allowing developers to automatically test and validate their code changes. GitLab CI provides a powerful platform for automating these processes, and integrating Flutter tests into GitLab CI is a straightforward process.

In this article, we’ll guide you through the steps to configure Flutter tests on GitLab CI, ensuring that your project’s tests are run automatically whenever changes are pushed to the repository.


Before setting up GitLab CI for your Flutter project, ensure the following:

  1. GitLab Account: You should have a GitLab account and a repository for your Flutter project.
  2. Flutter Installed Locally: Flutter should be installed on your local development machine.

Step 1: Create a .gitlab-ci.yml file

Create a .gitlab-ci.yml file in the root directory of your Flutter project. This file will define the CI pipeline stages, jobs, and configurations.

- test


- apt-get update -q -y
- apt-get install -y lib32stdc++6

- rm -rf flutter
- git clone…



Pradap Pandiyan

I’m a passionate QA Engineer. I’m a motovlogger, content creator, off-roader and freelancer. Buy me a coffee here