robot-testing-framework
robot-testing-framework copied to clipboard
Test that fails to load in a test suite do not count as failed tests
If the testrunner fails to find the plugin for a given tests, it prints the following erro message:
2: [testrunner] cannot load plugin myTest.so; error (load) : myTest.so: cannot open shared object file: No such file or directory
But the final output is:
2: ---------- results -----------
2: Total number of test suites : 1
2: Number of passed test suites : 1
2: Number of failed test suites : 0
2: Total number of test cases : 0
2: Number of passed test cases : 0
2: Number of failed test cases : 0
A test that was impossible to load should count as a failed test.
how we know that the myplugin.so is actually a RTF test plugin when it is failed to load? For example when launching testrunner -r --tests /foo/bar ?
Maybe it make sense only if the plugin is explicitly listed in XML suite file. right?
Good point @apaikan , title updated!
Alternative solutions
- Can we add another parameter to lunch
testrunnerin restricted mode which count unloaded plugins as failed? such astestrunner --conservative ...ortesrunner --restricted ... - Adding another line to the test report as
Number of unloaded test cases : 1 - Considering unloaded tests as failed only if the test case run from a test suite