The Greenfoot Network:  Greenfoot.org    The Greenroom

Password (Forgotten it?)
    Test Driven Development with Greenfoot
    last edited Jun 10 2019 by Francisco Guerra

    Created by Francisco Guerra. Other contributors:

    Short description:

    This resource allows the creation, editing and execution of unit tests in the Greenfoot IDE to do Test Driven Development in the learning process.

    Full description:

    Test Driven Development is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the software is improved to pass the new tests, only. This is an efficient software production process, it is also adequate in the programming learning process. When using TDD in the development of a program, the student acquires knowledge while increasing their confidence, becoming a better programmer in less time.

    This resource contains the GreenfootUnitTestIDE-3.7.1.jar executable (GreenfootUnitTestIDE-3.7.1a.jar: Mac only, fixes crash on mac OS 13 Ventura) that adds the creation, editing and execution of unit tests in the Greenfoot IDE to perform the test-driven development in the learning process. The installation can be done by running GreenfootUnitTestIDE-3.7.1.jar to do all the work. This executable has been programmed in Java so that it can be used in Mac, Windows and Linux. If this executable finds a Greenfoot-3.7.1 installation, it is proposed as a candidate to be modified, including unit tests. You can always choose another location or uninstall this new Greenfoot IDE with TDD. Additionally, this latest version includes the user template configuration that the Greenfoot IDE applies to class creation.

    In addition, there are a tutorial to use the new Greenfoot IDE and a Greenfoot project with unit tests that was programmed in the referenced tutorial. Also, it is included some test examples for little-crab, the well-known Greenfoot scenario, that is part of the book “Introduction to programming with Greenfoot” (Second Edition) by Michael Kölling. ISBN: 013405429.

    This resource also contains the executable jar of version 3.5.4 for those users who have not been able to migrate to the new version of Greenfoot.

    The repository https://gitlab.com/franciscoguerra/GreenfootWithUnitTests.git contains all the resources used by GreenfootUnitTestIDE-3.7.1.jar. Then, you have a second option: All resources can be put on hand in the corresponding Greenfoot folder. If the second option is chosen, the name used in the repository folder to store each resource has the same name as the folder that this resource also has in the original Greenfoot installation.

    It is IMPORTANT to say that it is a modification of the Greenfoot-3.7.1 application, and that therefore it will only work if the application is already installed, it is version 3.7.1 and it has already been executed at least once.

    Available when logged in (join via the front page, for free):
    • View 14 comments on this resource.
    • View resource history, links to related resources.
    • Leave feedback for the author(s), or help by editing the resource.

    Files:
    doc TDDwithGreenfoot.pdf
    It is a tutorial that shows how to use the new Greenfoot IDE to develop a scenario driven by the test design. (downloads: 19)

    doc FirstJunitScenarioJUnit4.zip
    Greenfoot project that was programmed in the tutorial. (downloads: 9)

    doc FirstJunitScenarioJUnit5.zip
    Greenfoot project that was programmed in the tutorial. (downloads: 5)

    doc allScenarios_little-crabJUnit4.zip
    Some test examples for little-crab, that is part of the book "Introduction to programming with Greenfoot" (Second Edition) by Michael Kölling. ISBN: 013405429. (downloads: 5)

    doc allScenarios_little-crabJUnit5.zip
    Some test examples for little-crab, that is part of the book "Introduction to programming with Greenfoot" (Second Edition) by Michael Kölling. ISBN: 013405429. (downloads: 5)

    doc GreenfootUnitTestIDE-3.5.4.jar
    Java executable that adds the creation, editing and execution of unit tests in the Greenfoot IDE 3.5.4 (downloads: < 5)

    doc GreenfootUnitTestIDE-3.7.1.jar
    Java executable that adds the creation, editing and execution of unit tests in the Greenfoot IDE 3.7.1 (downloads: < 5)

    doc GreenfootUnitTestIDE-3.7.1a.jar
    Java executable that adds the creation, editing and execution of unit tests in the Greenfoot IDE 3.7.1a (downloads: < 5)

    Download All
    Total downloads for all files (including previous versions): 2983

    Sets:

    Created by Supported by
    Copyright King's College London, 2017. Contact us.