Skip to main content

devpul_test 1.1.0 copy "devpul_test: ^1.1.0" to clipboard
devpul_test: ^1.1.0 copied to clipboard

Records DevPul events during Dart and Flutter tests and writes a session file for each test that fails, to open in the DevPul browser UI.

example/devpul_test_example.dart

import 'package:devpul/devpul.dart';
import 'package:devpul_test/devpul_test.dart';
import 'package:test/test.dart';

// dart test example/devpul_test_example.dart
// The failing test writes build/devpul/example/devpul_test_example/...json.
void main() {
  DevpulTest.capture();

  test('adds an item to the cart', () {
    Devpul.log('Adding abc-1');
    Devpul.emit('cart.add', {'sku': 'abc-1', 'qty': 2});
    expect(cartSize(), 2);
  });
}

int cartSize() => 1;
0
likes
160
points
60
downloads

Documentation

Documentation
API reference

Publisher

verified publishersaradgajurel.com.np

Weekly Downloads

Records DevPul events during Dart and Flutter tests and writes a session file for each test that fails, to open in the DevPul browser UI.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#debugging #testing #logging #devtools

License

MIT (license)

Dependencies

devpul, stack_trace, test_api

More

Packages that depend on devpul_test