coverage

Evaluating coverage of instructor-supplied code

Hello,

I would like to create an assignment with the following properties:

  1. Student submits JUnit tests for an instructor-supplied specification
  2. Web-CAT maintains an instructor's implementation of the specification
  3. Student code is evaluated for coverage of the instructor's implementation

Is there a way to do this with the JavaTDDPlugin?

 

thank you!

ivan.

Added ability to exclude simple getters/setters

 

In TDD, programmers are usually advised not to test things that are "too simple to be broken", since there is no point in testing code that has no bugs.  While for totally green beginners there may be merit to testing even the simplest of methods, for seasoned programmers there isn't much point.

Updated ability to exclude simple exception handlers

The JavaTddPlugin uses Clover to instrument student code and measure how much of the code is executed by a student's tests.  For a while now, the JavaTddPlugin has supported an option to "exclude simple exception handlers" from coverage analysis, so that coverage of that code isn't required for students to receive 100% code coverage.

Syndicate content