-
Notifications
You must be signed in to change notification settings - Fork 75
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
UnitTest: Make the console cmd Dev::UnitTest::Run a frontend for TAP::Harness #192
Comments
First we have to discuss the pros and cons of this!! ;) |
I'll change the label to 'question'. |
This change would also allow the use of |
During the September meeting of the OTOBO Team it was decided that the continous integration features of Dev::UnitTest::Run are no longer supported. These features can be removed. Concretely the following options can be removed:
The reason is that the infrastructure for managing these submissions do not exist for OTOBO. New infrastructure might be based on Github actions or on https://metacpan.org/release/Tapper. But that will be a different issue. |
The relevant module is actually TAP::Harness, not App::Prove. App::Prove uses TAP::Harness. |
Options that were used for submitting test reports
This is more in line with TAP::Harness. Also a bit of tidying.
The option --test-runs can also be added again when it is found to be useful. The same applies to the option --data-diff-type. Supporting this option is hard because the driver instance is now created by the script itself. So, for now, let's stick with the default diff type table. |
The Selenium screenshot feature will be disabled for now as well. |
Otherwise remove support for coloring
add a OTOBO specific output line, just because tradition
Not succeeding, the test 'ok s' are still passed to TAP::Harness
when loading Kernel::System::UnitTest::RegisterDriver
The migration seems to work mostly. One failure is UnitTest/Blacklist.t, It looks like STDOUT from
|
Let's create a branch based on rel-10_0 that backports these adaptions to the test suite. Based on the result of test runs we can decide whether these adaption can be included in 10.0.4. The actual backport will be done in #447 . |
Understandably the module would not load when misspelled
while STDOUT is still redirected to a Perl scalar
Just to have a really simple testscript.
But the test output from NutsAndBolts.t is still visible
Tests look fine:
The issue with UnitTest/Blacklist.t is handled in #472 . Closing this issue. Further problems should be handled in dedicated issues. |
Running internal tests messed up the test counter, see #192
Because there were issues with the localised STDOUT, see #192
As
prove -I . -I Kernel\cpan-lib -r scripts/test
is now working, the console command command can be converted to doing the same thing asprove
. The important features should be preserved. Unused features should be removed.Internally
Kernel::System::UnitTest::Driver
could changed to be a proper Test2 testing tool. See https://metacpan.org/pod/Test2::Manual::Tooling . This should be safe for all the encoding issues, because the question whether ùse utf8`is active is then solely determined by the test script itself.Switching to
App::Prove
would also allow to remove the funny1;
in the last line of the test scripts.The text was updated successfully, but these errors were encountered: