-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add option like skip-known-failures #37
Comments
@karussell can you test with latest master? (Committed from the bus between the Granada airport and the city center \o/ ) |
Thanks! So all tests with xfail will be skipped when in compare mode or could they still PASS? Update: Then we get XPASS and at the end we get a nice report that indicates that it will be still executed, makes sense but takes much longer. |
Strange, something seems wrong:
The log file used for comparison contains these entries:
|
When testing manually the new passing is correct but the new failure obviously not. |
There seems to be another problem, while the tests it says: geocoder_tester/world/poi/test_airports.csv::Dawadmi Domestic Airport XPASS The summary says "4141 passed, 3451 xfailed, 20 xpassed" and "TOTAL NEW PASSING: 0" and "TOTAL NEW FAILURES: 0". Shouldn't the xpassed tests listed in the new passings section? |
Thanks, I'll have a look as soon as I'm in a bus or a plane (back from holidays tomorrow) :p |
I was just using save-reports and compare-reports nothing special: py.test --api-url '/api?' --save-report report.log |
Added
Definitely, and this is the behaviour I'm seeing, so something is different between our envs. I'll try to investigate more, but I may need help to be able to reproduce.
Failing to reproduce this too :( |
Thanks a lot for the new parameter and investigating this. Will try to produce something reproducable for you in the next days! |
Can I somehow send you both stored report logs and you can compare them? Or would you need one report log and a command to run the compare on demand to reproduce this? |
Let's try with that :) |
Ok, finally managed to fix some other ugliness and have our master and the change up here: komoot/photon#314 (comment) The results I have attached |
On import of compare-report, imported COMPARE_WITH lines are stripped. For queries starting/ending with whitespace, this results in having their failed tests reported as new failure and new passed, as they are compared to unstripped FAILED lines. |
Ah, thanks for finding this. So should we adapt the test cases or improve the code? |
(or both :)) |
Oh, just thinking that other geocoders could make a difference of a number followed by a whitespace or not: in the first case, this could be a complete housenumber, in the second an unfinished postal code. So better just fix the code... |
Good catch @hbruch! |
Thank you for the immediate fix! |
See comment
The text was updated successfully, but these errors were encountered: