Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cjstehno/proving
Useful utilities for writing unit tests in Dart.
https://github.com/cjstehno/proving
dart testing utilities
Last synced: about 5 hours ago
JSON representation
Useful utilities for writing unit tests in Dart.
- Host: GitHub
- URL: https://github.com/cjstehno/proving
- Owner: cjstehno
- License: bsd-3-clause
- Created: 2023-10-05T11:13:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-06T10:29:14.000Z (about 1 year ago)
- Last Synced: 2023-10-06T13:52:42.513Z (about 1 year ago)
- Topics: dart, testing, utilities
- Language: HTML
- Homepage: https://cjstehno.github.io/proving/
- Size: 242 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Proving
A collection of useful functions for doing Dart unit testing.
## Installation ๐ป
In order to start using Proving you must have the [Dart SDK](https://dart.dev/get-dart)
installed on your machine.Install via `dart pub add`:
```sh
dart pub add proving
```> **Taskfile.** This project uses [Taskfile](https://taskfile.dev) to simplify development tasks.
> It is not a requirement, but recommended.## Running Tests ๐งช
To run all unit tests:
```sh
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:```sh
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:
```sh
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](https://opensource.org/license/bsd-3-clause/).