Links
- unittest:unittest
- Unit Testing
- e.g. discusses matchers such as
startsWith
, etc.
- e.g. discusses matchers such as
- Mocking
- dartmocks
- unittest Library
- matcher Library
- Run just one test ignoring the others.
- solo_test(String spec, TestFunction body)
- i.e. just rename one of the
test(...)
to besolo_test(...)
and only that one will run.
- Running the dart analyzer
- Checked mode
- Using karma
Snippets
// expect equals. expect("foo", equals("foo")); // expect a function to raise an expection. expect(() => foo(a, b, c), throws);