GithubHelp home page GithubHelp logo

joechchung / codedefenders Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codedefenders/codedefenders

0.0 0.0 0.0 36.24 MB

Gamification of Mutation Testing

License: Other

Makefile 0.05% Java 38.82% Shell 0.02% JavaScript 23.79% HTML 26.81% CSS 10.51%

codedefenders's Introduction

Code Defenders

This is Code Defenders, a mutation testing game.

Requirements

  • Tomcat Server v7 or later
  • Ant (default executable /usr/local/bin/ant, set environment variable ANT_HOME)
  • Maven
  • MySQL

Database

To create the database, execute src/main/resources/db/codedefenders.sql:

mysql -u [username] -p
> source src/main/resources/db/codedefenders.sql;

Data Storage

Classes, tests and mutants are stored in /var/lib/codedefenders/, these directories must exist:

mkdir -p /var/lib/codedefenders/sources /var/lib/codedefenders/tests /var/lib/codedefenders/mutants

The tomcat user (and possibly the user running Code Defenders) must have full permissions on this directory.

Major and Evosuite must be stored in their respective folders within this directory (codedefenders/major and codedefenders/evosuite).

Deployment

Tomcat admin user

Add manager-script role and user to $CATALINA_HOME/conf/tomcat-users.xml ($CATALINA_HOME should be set to your Tomcat installation root directory):

<role rolename="manager-script"/>  
<user username="adminscript" password="adm3b5eM3JG" roles="manager-script"/>  

Deploy first time

Tomcat and MySQL passwords must be provided to compile and deploy the first time, either by editing makefile or by passing them as arguments:

make first [TOMCAT_PASSWORD=... MYSQL_PASSWORD=...]

Redeploy

To compile and redeploy:

make

IntelliJ Project

  • Import Maven project from existing sources
  • Configure Tomcat server
    • Preferences -> Build, Execution, Deployment -> Application Servers -> Add Tomcat Server
  • Configure Artifact (as Web Application: Exploded), it must include:
    • WEB-INF/classes/[module compile output]
    • WEB-INF/lib/[all maven dependencies]
    • `resources` directory contents
    • `webapps` directory contents
  • Add Run/Debug Configuration
    • Run -> Edit Configurations... -> Add New Tomcat Server configuration -> Add `Build artifact` in `Before launch` panel and check On Update action: Redeploy. -> OK

Public URL

http://code-defenders.org

codedefenders's People

Contributors

jmrojas avatar ben-clegg avatar thomasdeanwhite avatar gofraser avatar robrob 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.