Ant with JUnitParams

0

Guys, I'm using ANT along with Jenkins to make Continuous Integration right? I use ANT initially to run the automated tests and then generate the application build. My problem comes down to running the automated tests with ANT. Most of my tests are parameterized (I read the data mass of a CSV and I give the input in the field), but when I run the build.xml of the ANT to run the tests, it can only execute tests that are not parameterized . The error that occurs is due to it not being able to read the CSV, it seems to be missing from the JUnitParams library, but I have checked it numerous times and it is in the lib directory (from where the ant pulls the required libs). Here is the StackTrace of the error that occurs:

java.lang.RuntimeException: Could not successfully read parameters from file: classpath:UC003_editarIdentificacao/UC003-Massa_de_dados_Identificacao.csv
    at junitparams.internal.TestMethod.paramsFromFile(TestMethod.java:141)
    at junitparams.internal.TestMethod.parametersSets(TestMethod.java:124)
    at junitparams.internal.TestMethod.isIgnored(TestMethod.java:81)
    at junitparams.internal.TestMethod.isNotIgnored(TestMethod.java:88)
    at junitparams.internal.ParameterisedTestClassRunner.addTestMethodForEachParamSet(ParameterisedTestClassRunner.java:82)
    at junitparams.internal.ParameterisedTestClassRunner.computeFrameworkMethods(ParameterisedTestClassRunner.java:56)
    at junitparams.internal.ParameterisedTestClassRunner.<init>(ParameterisedTestClassRunner.java:32)
    at junitparams.JUnitParamsRunner.<init>(JUnitParamsRunner.java:390)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
Caused by: java.lang.NullPointerException
    at java.io.Reader.<init>(Unknown Source)
    at java.io.InputStreamReader.<init>(Unknown Source)
    at junitparams.internal.TestMethod.createProperReader(TestMethod.java:155)
    at junitparams.internal.TestMethod.paramsFromFile(TestMethod.java:132)
    
asked by anonymous 15.07.2014 / 19:56

0 answers