Low commit activity in last 3 years
No release in over a year
Java Runner for Mumuki
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.29
 Project Readme

Build Status Code Climate Test Coverage

Install the server

Clone the project

git clone https://github.com/mumuki/mumuki-junit-runner
cd mumuki-junit-server

Install Ruby

rbenv install 2.0.0-p481
rbenv rehash
gem install bundler

Install docker image

This runner is dockerized, so you will need to install Docker first. Then:

./bin/pull_docker.sh

Install Dependencies

bundle install

Run the server

RACK_ENV=development bundle exec rackup -p 4567

Test syntax

Tests are standard JUnit 4 tests, with a few following considerations:

Test class

You don't have to code the Test Class, but only the test methods instead. E.g.:

@Test
public void testFoo() {
  Assert.assertEquals(Foo.bar(), 2);
}

Imports

The following packages are imported by default:

  • java.util.*
  • java.util.function.*
  • java.util.stream.*
  • java.util.stream.Collectors.*
  • java.time.*

Test naming convention

There are no specific test naming conventions. However, using snake_case instead of camelCase is recommended, since underscores _ will be converted into spaces in the test title. E.g.:

@Test
// WARNING:This test title will be reported as "test something interesting"
// instead of just "test_something_interesting"
public void test_something_interesting() {
  Assert.assertEquals(Foo.bar(), 2);
}