-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test objects are not being pulled during the build with eo-maven-plugin
#4030
Comments
@maxonfjvipon please check |
@h1alexbel we definitely don't need to pull them. Every library should run only its own tests. We need to find a way to suppress this check for the objects which are pulled from outside of the project |
@maxonfjvipon or maybe we should pull tests too, and run them together with local tests? |
@yegor256 I don't think it's a good idea. Imagine you run the tests on your local little java repository and you see that all of you dependencies start executing their tests and instead of 2 seconds for build you'll have 10 minutes (possibly). I think we should be able to suppress some WPA lints (and maybe not only WPA) for external dependencies because we're not responsible for them and don't want to see warnings because of them |
@maxonfjvipon indeed, this does make sense. However, look at it from another point of view. We do whole-program-compilation, using sources for all our objects. We download sources from the Network. How can we trust them? What if we download, but they don't work, after compilation? Maybe instead of skipping lints for "foreign" objects and tests, we can mark those tests as "secondary" and skip them by default. But they can be unskipped, if a user wants a perfectly safe local compilation and testing. |
@maxonfjvipon I agree with @yegor256 about ability to run all tests if one would want ensure maximum level of stability. How about we introduce new option |
@yegor256 @h1alexbel then it should some another mechanism of pulling, because we actually pull only object which current objects are depending on. Tests are independable. |
@maxonfjvipon can we detect which object is used in tests, and pull those tests? |
@h1alexbel I don't think so. We can try to scan |
@maxonfjvipon When we publish tests to objectionary/home, we can add |
@yegor256 probably, I think, do not run pulled tests is not a problem. The problem is - how to download them |
@maxonfjvipon maybe simply by name? If we pull |
In the external EO library, where it has its own objects, we building the project with
eo-maven-plugin
with this configuration:During
lint
goal we are gettingunit-test-missing
warning on external objects (try
,nan
,dataized
,string
,number
, etc.) though we have them:Seems that
*-test.eo
objects are not being pulled fromhome
during the execution ofeo-maven-plugin
, and thats why we are getting those warnings.Full story here.
The text was updated successfully, but these errors were encountered: