-
Notifications
You must be signed in to change notification settings - Fork 11
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
xml tag order #69
xml tag order #69
Conversation
1 similar comment
The coveralls failed report is a bit difficult to analyse (there seem to be something missing , and so it is not possible to visualize the actual for which the coverage changed). For the time being, I would disable it. |
src/rtf/src/TestSuit.cpp
Outdated
@@ -26,12 +26,16 @@ TestSuit::~TestSuit() { | |||
} | |||
|
|||
void TestSuit::addTest(RTF::Test* test) { | |||
tests.insert(test); | |||
tests.push_back(test); |
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.
To maintain the same semantics, we should make sure that we don't add two times the same test pointer in the vector. Without this check, the removeTest
would need to be improved.
I increased the "Coverage Decrease Threshold for failure" to 3 % , so we can keep the coveralls status comment without spurious failures. |
I would also add a line of documentation about this in https://github.com/robotology/robot-testing/blob/ed986d8e77cc3cf14fdc938a091ee8fe4588d53c/doc/testrunner.dox#L83 . |
So far I remember, there was a specific reasons that
|
alternatively we could introduce a new property into our xml tag and propagate it into the <test type="dll" param="--from camera_right.ini" priority="1"> CameraTest </test>
<test type="dll" param="--from camera_left.ini" priority="2"> CameraTest </test> Then use native This would also has distinct advantage for future development when someone want to use different representation/formatting of tests than XML such as 'yaml' or |
@apaikan answer to your question in order:
this was also one of my idea of improvement initially.. but i think it is more intuitive, at least for the xml case to read the order of the tests and fixtures in a top/down way. Moreover at the moment is the smoothest possible fix |
great! so we could potentially have dublicated tests. :D then lets keep it as you said untill I recall what was the reason to not make Test class unique or it was simply a bug! |
94e2d32
to
9787619
Compare
fixtures and test are now executed following the xml order