manuc352 / PDL_1920_groupe-7

0 stars 9 forks source link

mvn test: no test case execution and no CSV generation #25

Open acherm opened 4 years ago

acherm commented 4 years ago

Hi,

When executing mvn test it seems no test cases are actually executed (it's just build). Moreover, CSV files are not generated out of the list of URLs.

Am I missing something? How can I reproduce files of output?

(INSTALL.md has not been updated and does not help much)

nasco2323 commented 4 years ago

Hi , we have added stats files in the output directory about the maven test it will be ready soon (today ) we are working on it .

nasco2323 commented 4 years ago

mvn test is good now we have added the right plugin and you will be able to generate all the csv files but all of the junit tests cases won't be good because we have some tests cases which are not work , as you already know the extractor is not perfect at 100%

commit 3e05bec390f74e231c674baa03b6c2d04d19dc22

acherm commented 4 years ago

It still doesn't work

mathieuacher@localhost PDL_1920_groupe-7]$ git pull
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 43 (delta 18), reused 42 (delta 17), pack-reused 0
Unpacking objects: 100% (43/43), done.
From https://github.com/manuc352/PDL_1920_groupe-7
   961c937..3e05bec  master     -> origin/master
Updating 961c937..3e05bec
Fast-forward
 LoggerFile.xml                                              |  85 ++++---
 output/Wkitable_stat.csv                                    | 313 ++++++++++++++++++++++++++
 output/statsExtractor.csv                                   | 568 +++++++++++++++++++++++------------------------
 pom.xml                                                     |   5 +
 src/main/java/fr/istic/pdl1819_grp5/wikiMain.java           |  29 +--
 src/test/java/fr/istic/pdl1819_grp5/ConverterToCsvTest.java |  12 +
 6 files changed, 685 insertions(+), 327 deletions(-)
[mathieuacher@localhost PDL_1920_groupe-7]$ mvn test
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for PDWL1819_grpe5:WikipediaMatrix:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.commons:commons-csv:jar -> duplicate declaration of version 1.4 @ line 43, column 21
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.commons:commons-csv:jar -> duplicate declaration of version 1.4 @ line 48, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 102, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] -------------------< PDWL1819_grpe5:WikipediaMatrix >-------------------
[INFO] Building WikipediaMatrix 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ WikipediaMatrix ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WikipediaMatrix ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 9 source files to /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/target/classes
[WARNING] /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/src/main/java/fr/istic/pdl1819_grp5/WikipediaMatrix.java: /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/src/main/java/fr/istic/pdl1819_grp5/WikipediaMatrix.java uses unchecked or unsafe operations.
[WARNING] /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/src/main/java/fr/istic/pdl1819_grp5/WikipediaMatrix.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ WikipediaMatrix ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ WikipediaMatrix ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M4:test (default-test) @ WikipediaMatrix ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running fr.istic.pdl1819_grp5.ConverterToCsvTest
Jan 17, 2020 10:18:42 AM fr.istic.pdl1819_grp5.wikiMain loggerstart
INFO: EXTRACTIONG OF TABLES FROM WIKIPEDIA PAGES
Jan 17, 2020 10:18:42 AM fr.istic.pdl1819_grp5.wikiMain extracteurenmarche
INFO: input file note found
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.308 s
[INFO] Finished at: 2020-01-17T10:18:42+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project WikipediaMatrix: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7 && /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-1.fc31.x86_64/jre/bin/java -jar /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/target/surefire/surefirebooter4058691182641010310.jar /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/target/surefire 2020-01-17T10-18-41_833-jvmRun1 surefire5580588318208638004tmp surefire_0275555497412340998tmp
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] fr.istic.pdl1819_grp5.ConverterToCsvTest
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7 && /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-1.fc31.x86_64/jre/bin/java -jar /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/target/surefire/surefirebooter4058691182641010310.jar /home/mathieuacher/Documents/INPROGRESS/PDL2020/PDL_1920_groupe-7/target/surefire 2020-01-17T10-18-41_833-jvmRun1 surefire5580588318208638004tmp surefire_0275555497412340998tmp
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] fr.istic.pdl1819_grp5.ConverterToCsvTest
[ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:690)
[ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:285)
[ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:248)
[ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1217)
[ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1063)
[ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:889)
[ERROR]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
[ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954)
[ERROR]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]     at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[mathieuacher@localhost PDL_1920_groupe-7]$ 
manuc352 commented 4 years ago

The error may be due to the bad path to the wikiurls.txt file which is noted on line 49 of the wikiMain.

On our computer, files are created despite error messages. output directory> wikitext and output > html