Part 1, "Forming the Empire," contains chapters on Eugen Fischer's 1908 trip to Namibia to research the Rehoboth Basters (Lisa Todd), Emin Pascha as a national and imperial hero (Matthew Unangst), and how aspiring colonists conceived of Namibia as an extension of the German Heimat (homeland) (Blackler). The collection's sixteen chapters are organized chronologically into five sections. As the title implies, After the Imperialist Imagination endeavors to pick up where Sara Friedrichsmeyer, Sara Lennox, and Susanne Zantop's edited volume left off, and Sara Pugach, David Pizzo, and Adam Blackler have assembled an impressive collection that represents a variety of disciplinary and methodological approaches not only to the legacies of German colonialism and imperialism but to the embeddedness of modern Germany in global contexts more broadly. You can find the source code on GitHub.It is now more than twenty years since the publication of The Imperialist Imagination: German Colonialism and Its Legacy (1999), and its influence on the field of German studies is still felt. If you like the extensions the developers appreciate a rating or any feedback. Especially if your project gets bigger and bigger this view will be quite handy to identify insufficiently tested classes. The coverage of the login_service.dart class is 100% as we have concluded before. Test coverage per file with Flutter Coverage in VS Code Go to your Test Explorer in VS Code and open the Flutter Coverage drawer. It shows the coverage percentage of every dart file in your project. To solve this problem you can use the Flutter Coverage extension. In bigger projects, you’d like to have an overview of those files that have sufficient test coverage and those that don’t. Coverage display is not enabled, click to enable Coverage display is enabled, click to disable Show coverage information per file If you can’t see any colorings check the status bar and enable the coverage gutters. They just tell you if there is any test for a line. The extensions you installed earlier rely on the file to visualize the information.īe aware that the colors don’t indicate if a test passes or not. This will execute all tests in your project and create a file which contains the coverage information. So you just need to open a shell of your choice, navigate to the project root folder, and execute the following command flutter test -coverage. Collect coverage informationįlutter has a built-in command to collect coverage information while executing all tests. The unit testsįurthermore, we have some unit tests to cover all possible statements of the LoginService. It’s very basic and has flaws (like hard-coded user name and password) but will be enough to demonstrate how coverage works. It allows logging in, logging out, and checking the current state (logged in or not). I created a simple class called login_service.dart. We cover a basic example of how unit tests in a Flutter project can look like.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |