Welcome to the Learning Tests Flutter App repository! This repository is designed to provide a guided learning experience for writing unit tests, widget tests, and integration tests in the Flutter framework. Whether you are a beginner looking to get started with testing in Flutter or an experienced developer looking to sharpen your testing skills, this repository has got you covered.
To get started with this repository, follow these steps:
-
Clone the Repository:
git clone https://github.com/vicajilau/learning_tests_flutter_app.git
-
Navigate to the Project Directory:
cd learning_tests_flutter_app
-
Install Dependencies:
flutter pub get
-
Run the Tests:
flutter test
This will run all the tests in the project.
The project has the following folder structure:
lib/
: Contains the main Dart code for the Flutter app.test/
: Contains the test files organized into subdirectories for unit tests, widget tests, and integration tests.
Explore the following types of tests in the repository:
-
Unit Tests:
- Located in the
test/unit
directory. - Focus on testing individual functions and methods.
- Located in the
-
Widget Tests:
- Located in the
test/widgets
directory. - Test the UI components in isolation.
- Located in the
-
Integration Tests:
- Located in the
test/integration
directory. - Test the interaction between various parts of the app.
- Located in the
Feel free to modify and extend these tests as you learn and experiment with different testing scenarios.
We welcome contributions! If you find a bug, have a suggestion, or want to add more tests, please open an issue or submit a pull request. Check out our contribution guidelines for more details.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code for your learning and development purposes.
Happy testing! 🚀