Tests were skipped if package was invalid#197
Conversation
|
also address #137 |
|
also #139 |
|
Can you explain how is this change addressing all the mentioned issues? How will the executor behave now when we have:
Also, what will happen if before, after or test procedure is issuing a commit? |
|
I should have written better description of the change. Edited the initial post.
|
|
@jgebal We need to agree on the right behavior for |
|
New behavior: A test package that is raising an exception in beforeeach - each test is reported as failed A test package that is raising an exception in test - the test is marked as failed |
|
New behavior: A test package that is raising an exception in beforeeach - each test is reported as failed A test package that is raising an exception in test - the test is marked as failed A test package that is raising an exception in beforetest - each test is reported as failed A test package that is raising an exception in aftertest - each test is reported ok but then each is marked as failed |
|
What currently I don't like is that warnings are not connected to the place were error occured. Should be improved. |
|
I think that if beforeall/beforeeach fails, we should fail the tests that depend not hose blocks. If the afterall block fails, we should not fail the tests that already have executed successfully. To do that:
Teamcity reporter should indicate progress using the after_test hook. |
|
I like the new behaviour though not sure about the way it's implemented. Need to think about ways to make it cleaner. |
…as failed. Now the after_test gets executed regardless of before_test status
…/utPLSQL into fix-for-invalid-package-v2 # Conflicts: # source/core/types/ut_test.tpb
|
Behavior after recent changes: A test package that is raising an exception in beforeeach - each test is reported as failed A test package that is raising an exception in test - the test is marked as failed A test package that is raising an exception in beforetest - each test is reported as failed A test package that is raising an exception in aftertest - each test is reported ok but then each is marked as failed |
A small update to the description (in bold)A test package that is raising an exception in aftertest - each test is reported as failed |
…code that is raising exceptions in different blocks. Changed error message raised when suite is not found to be more adequate to the reasons for the error.
|
I think the code is in a good shape to be merged. |
…code that is raising exceptions in different blocks. Changed error message raised when suite is not found to be more adequate to the reasons for the error.
|
Documented the behavior |
If a package is invalid and contains suite level hooks then tests were skipped with no failure. No all tests mark as failed.
This might fix #192
What's done:
do_executefinal and defined at theut_suite_item_levelut_executableof first "before" hook leads to the exeption. This should mark all the tests in the suite marked as failed. To do this if the suite is not "valid" the loop is added to iterate throughut_testitems as they are also going to fail onis_validprocedure.