Giter VIP home page Giter VIP logo

shapeclassifier's Introduction

ShapeClassifier

This is the repository to experiment with testing. You only need to test evaluateGuess() method

Blackbox Testing

For this task we will create test cases from the ShapeClassifier specification. You should refrain from looking at the code as a source for test cases. You will test this program by identifying equivalence classes for inputs, encoding these partitions as an ACTS test specification (conditions and constraints), and using ACTS to generate test inputs accordingly. For this question, your steps are roughly as follows:

  1. Identify equivalence classes and constraints for the ShapeClassifier inputs
  2. Translate the equivalence classes generated in step A to test cases using weak equivalence class testings
  3. Construct and execute JUnit test cases for each test case.

The ACTS tool can be accessed in the ACTS folder.

Whitebox Testing

Derive test cases from the source code of the evaluateGuess method using whitebox testing. Using branch coverage as a guide, generate test cases that achieve the highest possible coverage numbers.

  1. Study the code and create a JUnit testcase to traverse a branch.
  2. Execute that testcase under a code coverage tool and observe the branch coverage.
  3. Repeat this process selecting a different branch to exercise until you run out of time.

Building and Testing with Maven

mvn clean test

shapeclassifier's People

Contributors

swapnilmarkhedkar avatar jeffgennari avatar hhk998402 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.