tdd-tetris-tutorial | You make a Tetris game | Unit Testing library

 by   luontola Java Version: Current License: No License

kandi X-RAY | tdd-tetris-tutorial Summary

kandi X-RAY | tdd-tetris-tutorial Summary

tdd-tetris-tutorial is a Java library typically used in Testing, Unit Testing applications. tdd-tetris-tutorial has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

In this tutorial you will be implementing a Tetris game using [Test-Driven Development] (TDD). Some 30 of the first tests have been provided, so that you just need to write code to pass them. The purpose of working with these pre-written test cases is to get accustomed to the TDD cycle, and to get some ideas on what kind of tests to write. After doing that for some while, it will be easier when it’s time to begin writing your own tests towards the end of this tutorial. For information about Test-Driven Development, here are some links. It is recommendable to read them before doing this tutorial, so that you would know what TDD is about.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tdd-tetris-tutorial has a low active ecosystem.
              It has 349 star(s) with 121 fork(s). There are 27 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 2 have been closed. On average issues are closed in 0 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of tdd-tetris-tutorial is current.

            kandi-Quality Quality

              tdd-tetris-tutorial has no bugs reported.

            kandi-Security Security

              tdd-tetris-tutorial has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              tdd-tetris-tutorial does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              tdd-tetris-tutorial releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed tdd-tetris-tutorial and discovered the below as its top functions. This is intended to give you an instant insight into tdd-tetris-tutorial implemented functionality, and help decide if they suit your requirements.
            • Returns a string representation of the matrix .
            Get all kandi verified functions for this library.

            tdd-tetris-tutorial Key Features

            No Key Features are available at this moment for tdd-tetris-tutorial.

            tdd-tetris-tutorial Examples and Code Snippets

            No Code Snippets are available at this moment for tdd-tetris-tutorial.

            Community Discussions

            Trending Discussions on tdd-tetris-tutorial

            QUESTION

            Are there things that you can't test when applying TDD
            Asked 2019-Aug-05 at 03:15

            I've been applying TDD to some new projects to get the hang of things, and I understand the basic flow: Write tests that fail, write code to pass tests, refactor if needed, repeat.

            To keep the tests fast and decoupled, I abstract out things like network requests and file I/O. These are usually abstracted into interfaces which get passed through using dependency injection.

            Usually development is very smooth until the end where I realize I need to implement these abstract interfaces. The whole point of abstracting them was to make it easily testable, but following TDD I would need to write a test before writing the implementation code, correct?

            For example, I was looking at the tdd-tetris-tutorial https://github.com/luontola/tdd-tetris-tutorial/tree/tutorial/src/test/java/tetris. If I wanted to add the ability to play with a keyboard, I would abstract away basic controls into methods inside a Controller class, like "rotateBlock", "moveLeft", etc. that could be tested.

            But at the end I would need to add some logic to detect keystrokes from the keyboard when implementing a controller class. How would one write a test to implement that?

            Perhaps some things just can't be tested, and reaching 100% code coverage is impossible for some cases?

            ...

            ANSWER

            Answered 2019-Aug-05 at 00:00

            You can't test everything with TDD unit tests. But if you also have integration tests, you can test those I/O interfaces. You can produce integration tests using TDD.

            In practice, some things are impractical to automatically test. Error handling of some rare error conditions or race hazards are the hardest.

            Source https://stackoverflow.com/questions/57350263

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tdd-tetris-tutorial

            You can download it from GitHub.
            You can use tdd-tetris-tutorial like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the tdd-tetris-tutorial component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/luontola/tdd-tetris-tutorial.git

          • CLI

            gh repo clone luontola/tdd-tetris-tutorial

          • sshUrl

            git@github.com:luontola/tdd-tetris-tutorial.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link