On this page
Dart Test Framework
Overview
Qualified supports writing tests for Dart using test
.
Basic Example
Solution
String sayHello(String name) {
return name.isEmpty ? "Hello, there!" : "Hello, $name!";
}
Tests
import "package:test/test.dart";
import "package:solution/solution.dart";
void main() {
group("greeter tests", () {
test("when name is provided", () {
expect(sayHello("Qualified"), equals("Hello, Qualified!"));
});
});
}
Learn More
You can learn more on the Dart Test website.