Questions
This chapter was mainly provided to make you aware of the tools and techniques that are available to you, rather than any specific knowledge that needs to be retained, so use these questions as a way to check your awareness:
- Why would you write a unit test?
- What method would you call to check that the outcome of a test matches the expectation?
- Describe the concept of mocking when testing code.
- Which class would you use to test a widget?
- There are two ways to set a debugger breakpoint – one in the IDE and one in code. Can you remember how to do this?
- We looked at two inspectors within DevTools. Can you remember how to open them in your IDE and what their purposes are?
- A cheeky bonus question – Flutter has traditionally used the Skia graphics library for rendering, but can you name the new rendering library that Flutter is transitioning to?