Monday, November 3, 2014

maven test skip the test. Hmm. Maven defines that to everything in src / test / java / ** will be t


maven test skip the test. Hmm. Maven defines that to everything in src / test / java / ** will be treated as a potential test. Junit4 defines the test method will be marked withTest annotation. That is the theory. In practice, it is so that in the run of the Maven tests which old Surefire plugin to version 2.7 of this partially coughs, so while looking annotationTest but it ignores tion that everything in src / test / java / ** is potential test junit4 and looks to find tests for 3 patterns known in JUnit3: "** / Test * .java", "** / * Test.java" and "** / * TestCase.java". How to get out of it? Must upgrade surefire (maybe some centrally by the parent parent-pom), or call the test object according JUnit3 patterns (eg. The * Test.java)
2014 (2) June (1) March (1) 2013 (2) August tion (1) January (1) 2012 (7) October (2) December (2) May (1) April (2) 2011 (5) October (1) Maven 2, junit4 and running tests September (1) June (1) May (1) February (1) 2010 (2) April ( 1) February (1) 2009 (14) October (1) August (1) June (4) June (5) March (1) December (2) 2008 (15) December ( 2) June (4) July (1) April (2) March (1) February (2) October (3) 2007 (52) October (3) October (10) September ( 5) August (11) July (1) June (2) May (11) December (2) December (5) December (2) 2006 (82) October (3) November ( 9) October (9) October (3) August (3) January (1) June (4) May (3) January (8) March (14) February (8) January ( 17) 2005 (212) December (19) December (5) October (11) September (18) August (20) April (22) March (19) May (28) April ( 24) March (24) February (7) January (15) 2004 (194) December tion (22) November (40) October (28) September (29) August (22) July ( 14) June (6) May (2) April (11) March (10) February (7) October (3) 2003 (23) October (3) November (2) October ( 4) September (2) February (4) July (1) June (7)


No comments:

Post a Comment