javaunittest

Question types ::: qtype_javaunittest
Maintained by Gergely Bertalan, Michael Rumler
Hallo Moodle Users. We have developed a new question-type called javaunittest and want to share it with the community. The plugin is a new version of the sojunit questtion type developed by Süreç Özcan for Moodle 1.8 (https://moodle.org/mod/forum/discuss.php?d=102690).

javaunittest 2.00

Moodle 2.7
Released: 2014年 09月 30日(週二) 15:19
0. Changelog

Version 2.00:
+ plugin now supports remote compiling and test running via
moodle_qtype_javaunittest_remoteServer (included in sub directory)
+ now you can configurate a global timeout to force for your junittests,
timeout will automatically added to test classes
+ some more display settings added
+ support for junit4 style (junit3 style still works)
# changed grading: if the test class does not compile we grade
the students answer as wrong, otherwise removing/renaming
a required method let the student pass

==========================================================
Todo in order to get this question type running properly:
==========================================================

1. Installation and configuration

Put the the directory 'javaunittest' and its content into your
moodle directory: moodle/question/type/.

Decide whether using local compiling and test running or using a remote server.

Edit the config.php and set there the proper local path variables or remote url.

If you chose remote running put the content of the directory
'moodle_qtype_javaunittest_remoteserver' to your remote machine
and make it accessable like configured in the clients config.php.
Furthermore configure the remote server itself by editing
moodle_qtype_javaunittest_remoteserver/config.php.

The compiling and test running machine needs beside the webserver with
php support of course java compiler, java runtime environment and a current
versions of junit and hamcrest (get them from
https://github.com/junit-team/junit/wiki/Download-and-Install).

==========================================================

2. JUnit examples

In the sub directory EXAMPLE_FILES you find some examples and another
README file. It explains how to create a question with this question
type module.

==========================================================

3. Security Manager

The java security manager has the task to prevent any evil
things who could mess up your system. This plugin supports
the usage of the java security manager. There is a polfile to
configure things who are allowed. E.g. if you need to grant
threading privileges or file i/o edit this polfile.
Policy files should be stored in the polfiles directory.

Note that the remote server has its own polfiles directory.

You should grant at least the following permissions:
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.RuntimePermission "getStackTrace";

==========================================================

4. About

This module is developed by tutors of the TU Berlin.

Original version: Süreç Özcan (sojunit 2008), suerec@darkjade.net
Main developer: Gergely Bertalan, bertalangeri@freemail.hu
Maintenance and Updates: Michael Rumler, rumler@ni.tu-berlin.de

Moodle module page: https://moodle.org/plugins/view.php?plugin=qtype_javaunittest
Source: https://github.com/tuttorsOfTheTUBerlin/javaunittest

Contact via Moodle module page.
Please write us if you find any issues or have feedback.

Version information

Version build number
2014092401
Version release name
2.00
Can be updated from
1.02 (2014030100)
Can be updated to
2.03 (2016031401), 2.03 (2016031600), 2.03 (2016031700)
Maturity
穩定版
MD5 Sum
430b4e1265507a7d9fe8b7b7cce0df2b
Supported software
Moodle 2.7

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation