Giter Club home page Giter Club logo

Comments (8)

laeubi avatar laeubi commented on June 1, 2024

@mickaelistria Where do I find documentation about -Dtest=... (e.g. values to use as ...?)

from tycho.

laeubi avatar laeubi commented on June 1, 2024

I think I found it: https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/test-mojo.html#test is that what you mean? Do you have an example I can use for testing?

from tycho.

mickaelistria avatar mickaelistria commented on June 1, 2024

For example, with rt.equinox.p2 repo, you can try mvn clean install -Pbuild-individual-bundles -Dtest=BaseChange. The expected behavior is that all modules before the test build fine, and then test will only run BaseChange.

from tycho.

laeubi avatar laeubi commented on June 1, 2024

I'll take a look at it.

from tycho.

laeubi avatar laeubi commented on June 1, 2024

This is intentional but (from my point of view) badly documented. Surefire docu says for test that

This parameter overrides the parameter includes, excludes, and the TestNG parameter suiteXmlFiles.

but in fact it enables also a check that tests are run (most probably this is expected to be used not on the root level). Sad enough the error message

No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)

is misleading as failIfNoTests is false by default.

Instead one should specify failIfNoSpecifiedTests, I have raised a bug for this.

So running mvn clean install -Pbuild-individual-bundles -Dtest=BaseChange -Dsurefire.failIfNoSpecifiedTests=false should do the trick, if you think that is useful we could try to set this property (if not specified) to false by default in the project setup.

from tycho.

mickaelistria avatar mickaelistria commented on June 1, 2024

OK, I see this is consistent with maven-surefire-plugin.
It's a bit annoying as it basically breaks 1 useful workflow, but there are solutions (eg set test parameter in the pom.xml, combine install then verify...), so I think it's fine to just keep things as they are now in master. and don't try to support this former workflow.

from tycho.

laeubi avatar laeubi commented on June 1, 2024

Alright then I think this could be closed

from tycho.

laeubi avatar laeubi commented on June 1, 2024

I also added a warning note to the RELEASE_NOTES

from tycho.

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.