Bläddra i källkod

Merge pull request #429 from FridaTveit/AddIgnoreHint

rna-transcription: add hint to Ignore annotation
Stuart Kent 9 år sedan
förälder
incheckning
ffbb48cf66

+ 1
- 1
bin/journey-test.sh Visa fil

230
     gradle compileTestJava
230
     gradle compileTestJava
231
     # Ensure we run all the tests (as delivered, all but the first is @Ignore'd)
231
     # Ensure we run all the tests (as delivered, all but the first is @Ignore'd)
232
     for testfile in `find . -name "*Test.java"`; do
232
     for testfile in `find . -name "*Test.java"`; do
233
-      sed 's/@Ignore//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
233
+      sed 's/@Ignore\(.*\)//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
234
     done
234
     done
235
     gradle test
235
     gradle test
236
     popd
236
     popd

+ 5
- 5
exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java Visa fil

17
         Assert.assertEquals("", rnaTranscription.ofDna(""));
17
         Assert.assertEquals("", rnaTranscription.ofDna(""));
18
     }
18
     }
19
 
19
 
20
-    @Ignore
20
+    @Ignore("Remove to run test")
21
     @Test
21
     @Test
22
     public void testRnaTranscriptionOfCytosineIsGuanine() {
22
     public void testRnaTranscriptionOfCytosineIsGuanine() {
23
         Assert.assertEquals("G", rnaTranscription.ofDna("C"));
23
         Assert.assertEquals("G", rnaTranscription.ofDna("C"));
24
     }
24
     }
25
 
25
 
26
-    @Ignore
26
+    @Ignore("Remove to run test")
27
     @Test
27
     @Test
28
     public void testRnaTranscriptionOfGuanineIsCytosine() {
28
     public void testRnaTranscriptionOfGuanineIsCytosine() {
29
         Assert.assertEquals("C", rnaTranscription.ofDna("G"));
29
         Assert.assertEquals("C", rnaTranscription.ofDna("G"));
30
     }
30
     }
31
 
31
 
32
-    @Ignore
32
+    @Ignore("Remove to run test")
33
     @Test
33
     @Test
34
     public void testRnaTranscriptionOfThymineIsAdenine() {
34
     public void testRnaTranscriptionOfThymineIsAdenine() {
35
         Assert.assertEquals("A", rnaTranscription.ofDna("T"));
35
         Assert.assertEquals("A", rnaTranscription.ofDna("T"));
36
     }
36
     }
37
 
37
 
38
-    @Ignore
38
+    @Ignore("Remove to run test")
39
     @Test
39
     @Test
40
     public void testRnaTranscriptionOfAdenineIsUracil() {
40
     public void testRnaTranscriptionOfAdenineIsUracil() {
41
         Assert.assertEquals("U", rnaTranscription.ofDna("A"));
41
         Assert.assertEquals("U", rnaTranscription.ofDna("A"));
42
     }
42
     }
43
 
43
 
44
-    @Ignore
44
+    @Ignore("Remove to run test")
45
     @Test
45
     @Test
46
     public void testRnaTranscription() {
46
     public void testRnaTranscription() {
47
         Assert.assertEquals("UGCACCAGAAUU", rnaTranscription.ofDna("ACGTGGTCTTAA"));
47
         Assert.assertEquals("UGCACCAGAAUU", rnaTranscription.ofDna("ACGTGGTCTTAA"));