Process greatly simplified by CLIs...
As ironic as it seems, the challenge of a tester is to test as little as possible. Test Less but test smarter
-Federico Toledo
Testing leads to failure, and failure leads to understanding.
-Burt Rutan
import test from 'ava';
test('bar', async t => {
const bar = Promise.resolve('food');
t.is(await food, 'dinner');
});
Magic Assert === 🎉
Jest
test('Link changes the class when hovered', () => {
const component = renderer.create(
<Link page="http://www.facebook.com">Facebook</Link>
);
let tree = component.toJSON();
expect(tree).toMatchSnapshot();
// manually trigger the callback
tree.props.onMouseEnter();
// re-rendering
tree = component.toJSON();
expect(tree).toMatchSnapshot();
// manually trigger the callback
tree.props.onMouseLeave();
// re-rendering
tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
Unit Testing
e2e - End to end testing
Integration Testing
Regression Testing
Acceptance Testing
System Testing
Usability Testing
Functional Testing
Animations!
...almost...
Isn't that for Electron?
Why yes, yes it is...
It is also a very recent build of Chrome
With an APIs.
mmmm, APIs
Headless Chrome
it's a big deal...
Browser Plugin
Core API
Command Line