From 1a8cd3f955208b73a29c6cd7a5f08eeec1bd038d Mon Sep 17 00:00:00 2001 From: Frida Johanne Tveit Date: Wed, 19 Apr 2017 17:04:59 +0100 Subject: [PATCH 1/2] rna-transcription: add hint to Ignore annotation --- .../src/test/java/RnaTranscriptionTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java b/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java index 6d32742c6..6b2dfc8a0 100644 --- a/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java +++ b/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java @@ -17,31 +17,31 @@ public void testRnaTranscriptionOfEmptyDnaIsEmptyRna() { Assert.assertEquals("", rnaTranscription.ofDna("")); } - @Ignore + @Ignore("Remove to run test") @Test public void testRnaTranscriptionOfCytosineIsGuanine() { Assert.assertEquals("G", rnaTranscription.ofDna("C")); } - @Ignore + @Ignore("Remove to run test") @Test public void testRnaTranscriptionOfGuanineIsCytosine() { Assert.assertEquals("C", rnaTranscription.ofDna("G")); } - @Ignore + @Ignore("Remove to run test") @Test public void testRnaTranscriptionOfThymineIsAdenine() { Assert.assertEquals("A", rnaTranscription.ofDna("T")); } - @Ignore + @Ignore("Remove to run test") @Test public void testRnaTranscriptionOfAdenineIsUracil() { Assert.assertEquals("U", rnaTranscription.ofDna("A")); } - @Ignore + @Ignore("Remove to run test") @Test public void testRnaTranscription() { Assert.assertEquals("UGCACCAGAAUU", rnaTranscription.ofDna("ACGTGGTCTTAA")); From c174f86ac784a472140b56a627af66b87c9a9db2 Mon Sep 17 00:00:00 2001 From: Frida Johanne Tveit Date: Thu, 20 Apr 2017 18:51:35 +0100 Subject: [PATCH 2/2] Change journey test to allow Ignore annotations to have hints --- bin/journey-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/journey-test.sh b/bin/journey-test.sh index 0a71c6f2f..4a71924fd 100755 --- a/bin/journey-test.sh +++ b/bin/journey-test.sh @@ -230,7 +230,7 @@ solve_all_exercises() { gradle compileTestJava # Ensure we run all the tests (as delivered, all but the first is @Ignore'd) for testfile in `find . -name "*Test.java"`; do - sed 's/@Ignore//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}" + sed 's/@Ignore\(.*\)//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}" done gradle test popd