Proving
A collection of useful functions for doing Dart unit testing.
Installation 💻
In order to start using Proving you must have the Dart SDK installed on your machine.
Install via dart pub add
:
dart pub add proving
Taskfile. This project uses Taskfile to simplify development tasks. It is not a requirement, but recommended.
Running Tests 🧪
To run all unit tests:
dart test
Coverage
In order to do anything useful with the test coverage, you must have lcov
installed. You can
install it using one of the following:
sudo apt install lcov
brew install lcov
sudo yum install lcov
Once you have lcov
installed, you can run the tests with coverage as follows:
dart pub global run coverage:test_with_coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info
genhtml coverage/lcov.info -o coverage/
The you can open the coverage/index.html
file to review the coverage report.
License
Proving is licensed under the 3-Clause BSD License.
Libraries
- fixtures
- A framework for writing test fixtures that hook into the unit test lifecycle.
- parametized
- Functions to aid in writing tests scenarios with multiple input values and expectations run against the same test function.
- proving
- A collection of unit testing tools to help "prove" that your code works - the whole enchilada.
- resources
- Utilities for working with test resources.
- verifiers
- Useful functions for helping to verify results.