gpt4 book ai didi

java - 我在ubuntu中使用maven,.java,sts eclipse和selenium ide,svn和web驱动程序

转载 作者:行者123 更新时间:2023-12-01 15:03:53 26 4
gpt4 key购买 nike

我在 ubuntu 中使用 maven、java、sts eclipse 和 selenium ide、svn 和 web 驱动程序。我对这些技术很陌生。我需要知道如何使用 Maven 通过终端测试我的项目(网站)。当我使用此命令 mvn clean test 时。测试和构建将成功..但测试未运行..我用selenium ide来录制它。我隐藏了 Sample.java 并将其保存在我的项目中..

sampath@sampathkumar-Breeze:~/svn/colorspace_swift/trunk/colorspace-swift$ mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Colorspace Swift 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact easymock:easymock:jar:2.0 has been relocated to org.easymock:easymock:jar:2.0
[WARNING] The artifact jdbc:jdbc-stdext:jar:2.0 has been relocated to javax.sql:jdbc-stdext:jar:2.0
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ colorspace-swift ---
[INFO] Deleting /home/sampath/svn/colorspace_swift/trunk/colorspace-swift/target
[INFO]
[INFO] --- maven-antrun-plugin:1.1:run (default) @ colorspace-swift ---
[INFO] Executing tasks
[mxmlc] Loading configuration file /usr/local/flex_sdk_4.0/frameworks/flex-config.xml
[mxmlc] /home/sampath/svn/colorspace_swift/trunk/colorspace-swift/src/main/webapp/flex/color_card/BreezeCC.swf is up-to-date and does not have to be rebuilt.
[copy] Copying 29 files to /home/sampath/svn/colorspace_swift/trunk/colorspace-swift/target/classes/html_messages
[copy] Copying 12 files to /home/sampath/svn/colorspace_swift/trunk/colorspace-swift/target/classes/help_files
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ colorspace-swift ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 116 resources
[INFO]
[INFO] --- maven-resources-plugin:2.3:copy-resources (copy-prod-resources) @ colorspace-swift ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 32 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ colorspace-swift ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 566 source files to /home/sampath/svn/colorspace_swift/trunk/colorspace-swift/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ colorspace-swift ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/sampath/svn/colorspace_swift/trunk/colorspace-swift/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ colorspace-swift ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ colorspace-swift ---
[INFO] No tests to run.
[INFO] Surefire report directory: /home/sampath/svn/colorspace_swift/trunk/colorspace-swift/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.154s
[INFO] Finished at: Tue Nov 06 18:15:53 IST 2012
[INFO] Final Memory: 18M/165M
[INFO] ------------------------------------------------------------------------



no test run in project.. please help how to test in maven

最佳答案

日志文件中的以下几行表明您的测试源没有位于正确的目录中:

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ colorspace-swift ---
[INFO] No sources to compile
[INFO]

将所有测试源放入src/test/java中。然后它们将被构建并且 maven-surefire-plugin 将找到它们。

关于java - 我在ubuntu中使用maven,.java,sts eclipse和selenium ide,svn和web驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13251441/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com