Skip to content

Commit

Permalink
Add NoTests plugin to tmc-langs-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jamo committed Jan 26, 2016
1 parent 1b9946b commit fad7936
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
<module>tmc-langs-java</module>
<module>tmc-langs-make</module>
<module>tmc-langs-python3</module>
<module>tmc-langs-notests</module>
<!-- TODO: add plugins and support libraries here -->

<module>tmc-langs-cli</module>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@

package fi.helsinki.cs.tmc.langs;

import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import fi.helsinki.cs.tmc.langs.abstraction.Strategy;
import fi.helsinki.cs.tmc.langs.abstraction.ValidationError;
import fi.helsinki.cs.tmc.langs.abstraction.ValidationResult;
Expand All @@ -21,17 +17,25 @@
import fi.helsinki.cs.tmc.langs.io.zip.StudentFileAwareZipper;
import fi.helsinki.cs.tmc.langs.io.zip.Unzipper;
import fi.helsinki.cs.tmc.langs.io.zip.Zipper;

import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.nio.file.Path;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
*
* @author jamo
* Plugin for projects with no tests. Gets points and exercise_name from {@code no-tests.points}
* and {@code no-tests.exercise_name} respectfully from {@code .tmcproject.yml} configuration file.
*/
public class NoTestsPlugin extends AbstractLanguagePlugin {

Expand Down
6 changes: 6 additions & 0 deletions tmc-langs-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
<version>1.0-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>fi.helsinki.cs.tmc</groupId>
<artifactId>tmc-langs-notests</artifactId>
<version>1.0-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import fi.helsinki.cs.tmc.langs.java.ant.AntPlugin;
import fi.helsinki.cs.tmc.langs.java.maven.MavenPlugin;
import fi.helsinki.cs.tmc.langs.make.MakePlugin;
import fi.helsinki.cs.tmc.langs.NoTestsPlugin;
import fi.helsinki.cs.tmc.langs.python3.Python3Plugin;

import org.slf4j.Logger;
Expand All @@ -19,6 +20,7 @@ public enum ProjectType {
JAVA_MAVEN(new MavenPlugin()),
MAKEFILE(new MakePlugin()),
PYTHON3(new Python3Plugin()),
NO_TESTS(new NoTestsPlugin()),
// for legacy and matching reasons keep the java ant as the last choise.
JAVA_ANT(new AntPlugin());

Expand Down

0 comments on commit fad7936

Please sign in to comment.