Giter VIP home page Giter VIP logo

Comments (10)

RobAustin avatar RobAustin commented on July 19, 2024

Maybe check the directory that you are running from :

this works for me :

/Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections

Robs-iMac:collections robaustin$ mvn -Dtest=TCPSocketReplication4WayMapTest#test test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenHFT/HugeCollections/collections 3.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ collections ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ collections ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-bundle-plugin:2.4.0:manifest (default) @ collections ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ collections ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ collections ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ collections ---
[INFO] Surefire report directory: /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/target/surefire-reports


T E S T S

Running net.openhft.collections.TCPSocketReplication4WayMapTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.568 sec - in net.openhft.collections.TCPSocketReplication4WayMapTest

Results :

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.565 s
[INFO] Finished at: 2014-05-29T22:22:05+00:00
[INFO] Final Memory: 13M/97M
[INFO] ------------------------------------------------------------------------
Robs-iMac:collections robaustin$

Sorry I am abusing you guys with mvn questions but stackOverflow gave me no remedy. Here is what I try

cd /apps/OpenHFT/
mvn -pl HugeCollections
-Dtest=net.openhft.collections.fromdocs.OpenJDKAndHashMapExampleTest#bondExample
test
but after hacking at this, I can't get past the message /"[ERROR] failed to execute goal: maven-surefire-plugin .... (default-test) on project: No tests were executed!"/

any ideas? and again sorry to be a bother. I am doing lots of OpenHFT demos and this demo requires I demo the capability from a KornShell cmd line (not IntelliJ)

Thanks,


Reply to this email directly or view it on GitHub.

from hugecollections-old.

Cotton-Ben avatar Cotton-Ben commented on July 19, 2024

Hmmm. Weird. Not working for me. Still getting "No test executed"

Would you mind trying this, Rob?

cd /Users/robaustin/IdeaProjects/OpenHFT/
mvn -pl HugeCollections/collections -Dtest=TCPSocketReplication4WayMapTest#test  test
mvn -pl HugeCollections/collections  -Dtest=OpenJDKAndHashMapExampleTest#bondExample  test

did both those 1x test via mvn invokes work perfectly for you?

P.S. Thanks for the help!

from hugecollections-old.

Cotton-Ben avatar Cotton-Ben commented on July 19, 2024

what's really weird ... if I run all tests from /apps/OpenHFT root ... they all pass. Only when I try to isolate a single test from the KornShell with the mvn cmd line do run do I get "No test executed". Isolating this same single test in IntelliJ (of course) works perfectly.

from hugecollections-old.

RobAustin avatar RobAustin commented on July 19, 2024

/Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections
Robs-iMac:collections robaustin$ mvn -Dtest=TCPSocketReplication4WayMapTest#test test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenHFT/HugeCollections/collections 3.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ collections ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ collections ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-bundle-plugin:2.4.0:manifest (default) @ collections ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ collections ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ collections ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ collections ---
[INFO] Surefire report directory: /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/target/surefire-reports


T E S T S

Running net.openhft.collections.TCPSocketReplication4WayMapTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.56 sec - in net.openhft.collections.TCPSocketReplication4WayMapTest

Results :

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.328 s
[INFO] Finished at: 2014-05-29T23:03:46+00:00
[INFO] Final Memory: 13M/97M
[INFO] ------------------------------------------------------------------------
On 29 May 2014, at 22:50, Ben Cotton [email protected] wrote:

mvn -pl HugeCollections/collections -Dtest=TCPSocketReplication4WayMapTest#test test

from hugecollections-old.

RobAustin avatar RobAustin commented on July 19, 2024

yes, if I run this

mvn -Dtest=TCPSocketReplication4WayMapTest#test test

from the shell outside of idea, I get this

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project affinity: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]

On 29 May 2014, at 22:55, Ben Cotton [email protected] wrote:

what's really weird ... if I run all tests from /apps/OpenHFT root ... they all pass. Only when I try to isolate a single test from the KornShell with the mvn cmd line do run do I get "No test executed". Isolating this same single test in IntelliJ (of course) works perfectly.


Reply to this email directly or view it on GitHub.

from hugecollections-old.

RobAustin avatar RobAustin commented on July 19, 2024

if you do this, it won’t fail

mvn -Dtest=TCPSocketReplication4WayMapTest#test -DfailIfNoTests=false test

alternatively, run the test from the root PROJECT directory ( then its fine ),

Robs-iMac:collections robaustin$ pwd
/Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections
Robs-iMac:collections robaustin$ mvn -Dtest=TCPSocketReplication4WayMapTest#test test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenHFT/HugeCollections/collections 3.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ collections ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ collections ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-bundle-plugin:2.4.0:manifest (default) @ collections ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ collections ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ collections ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ collections ---
[INFO] Surefire report directory: /Users/robaustin/IdeaProjects/OpenHFT/HugeCollections/collections/target/surefire-reports


T E S T S

Running net.openhft.collections.TCPSocketReplication4WayMapTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.446 sec - in net.openhft.collections.TCPSocketReplication4WayMapTest

Results :

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.198 s
[INFO] Finished at: 2014-05-29T23:12:15+00:00
[INFO] Final Memory: 13M/97M
[INFO] ————————————————————————————————————

On 29 May 2014, at 23:08, [email protected] wrote:

yes, if I run this

mvn -Dtest=TCPSocketReplication4WayMapTest#test test

from the shell outside of idea, I get this

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project affinity: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]

On 29 May 2014, at 22:55, Ben Cotton [email protected] wrote:

what's really weird ... if I run all tests from /apps/OpenHFT root ... they all pass. Only when I try to isolate a single test from the KornShell with the mvn cmd line do run do I get "No test executed". Isolating this same single test in IntelliJ (of course) works perfectly.


Reply to this email directly or view it on GitHub.

from hugecollections-old.

Cotton-Ben avatar Cotton-Ben commented on July 19, 2024

Ah, the glory! :)

But, what a bizarre remedy ...

Thanks Rob.

from hugecollections-old.

RobAustin avatar RobAustin commented on July 19, 2024

No Problem, pleased I could help.

Rob

On 29 May 2014, at 23:21, Ben Cotton [email protected] wrote:

Ah, the glory! :)

But, what a bizarre remedy ...

Thanks Rob.


Reply to this email directly or view it on GitHub.

from hugecollections-old.

peter-lawrey avatar peter-lawrey commented on July 19, 2024

You can do this from maven, or in IntelliJ you can right click on the code
for the test and select Run test. This will run one test, and you can
debug/profile that test from your IDE as well.

On 29 May 2014 23:21, Ben Cotton [email protected] wrote:

Closed #26 #26.


Reply to this email directly or view it on GitHub
#26 (comment).

from hugecollections-old.

Cotton-Ben avatar Cotton-Ben commented on July 19, 2024

Yes. intelliJ was never a problem (as you say ... it is a right-click does what you want dream tool). The challenge was from the KornShell ... which is what we have to be able to demo from .... to pacify some peoples' jaded outlooks (i.e." I don't trust it unless I see it done from the Korn shell" types) ... you know the kind.

We're good now! THANKS!

from hugecollections-old.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.