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
Fixing ticket 10174 #212
Fixing ticket 10174 #212
Conversation
@@ -112,7 +112,12 @@ example: | |||
Failing tests | |||
~~~~~~~~~~~~~ | |||
|
|||
"test.with.fail" is the property which will | |||
The ``test.with.fail`` ant property, which is ``true`` by default, can be set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to default to false
to me when I run unit tests. Inspection of lifecycle.xml
reveals a few,
<property name="test.with.fail" value="false"/>
so it won't actually default to true
in quite the cases that the reader may expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtbc, are you referring to all of the items which are proceeded with:
<!-- may be overriden by fail-on-error -->
? If so, the top-level setting to true
in globals.xml
should take precedence. (If anything we now need a dont-fail-on-error
target to prevent that behavior.)
Can you give a specific example which defaults to false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./build.py test-unit
is much faster with -Dtest.with.fail=true
and ends differently, and takes the same length of time and ends at the same place with -Dtest.with.fail=false
.
Any verdict on this? Happy to change it if someone gives me alternative text to use. |
If @joshmoore thinks the text is probably correct I'm fine with merging it now and our looking again at the situation another time. Even if it's misleading about the default for our builds, it may still be an overall improvement in pointing out that it's an ant property and what it's for: it's not like the consequences of wrongly thinking that it defaults to true are severe. |
@mtbc, my apologies, I found the reason. etc/local.properties.example (which sets the defaults) has the value specified:
In order to not change functionality, let's use |
Great, so it's presently I had noticed that file but it hadn't occurred to me that a file named |
Better now? |
3rd time lucky? |
You probably don't need the example line with |
(No complaints here) |
I'll rebase to develop as is then shall I? |
Sure, go ahead. |
Checked on:
|
No description provided.