Bug 387031

Summary: Test failures in master
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Christophe Marin <christophe>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: trimmed autotests output

Description Christophe Marin 2017-11-17 13:30:26 UTC
Tested with master & Qt 5.10 beta 4.

The following tests fail :
         62 - katesyntaxtest (Failed)
         63 - vimode_modes (Failed)
         64 - vimode_view (Failed)

Output is attached for these 3 tests
Comment 1 Christophe Marin 2017-11-17 13:31:08 UTC
Created attachment 108914 [details]
trimmed autotests output
Comment 2 Christoph Cullmann 2018-07-14 14:31:23 UTC
I think this is fixed, at least build.kde.org is happy with us.
Comment 3 Christophe Marin 2018-07-14 15:27:07 UTC
Interesting, I've just tested master with Qt 5.11, I have 2 failures locally:
The following tests FAILED:
         63 - vimode_modes (Failed)
         66 - vimode_keys (Failed)

---

>>> running command  "\\:<\\"  on text  "   foo"
QDEBUG : ModesTest::CommandTests() 17:15:37 - vimode_modes(7802) -  BaseTest::TestPressKey: Executing command directly from ViModeTest:
 "<"
FAIL!  : ModesTest::CommandTests() Compared values are not the same
   Actual   (kate_document->text()): " foo"
   Expected (expected_text)        : "  foo"
   Loc: [/data/kde/src/ktexteditor/autotests/src/vimode/modes.cpp(1492)]
QDEBUG : ModesTest::CommandTests() 17:15:37 - vimode_modes(7802) -  BaseTest::TestPressKey: 

----
>>> running command  "\\:1<\\"  on text  "   foo\nbaz"
QDEBUG : ModesTest::CommandTests() 17:15:37 - vimode_modes(7802) -  BaseTest::TestPressKey: Executing command directly from ViModeTest:
 "1<"
FAIL!  : ModesTest::CommandTests() Compared values are not the same
   Actual   (kate_document->text()): " foo\nbaz"
   Expected (expected_text)        : "  foo\nbaz"
   Loc: [/data/kde/src/ktexteditor/autotests/src/vimode/modes.cpp(1495)]
QDEBUG : ModesTest::CommandTests() 17:15:37 - vimode_modes(7802) -  BaseTest::TestPressKey: 
---

>>> running further keypresses  "gg@q"  on text  ""
FAIL!  : KeysTest::MacroTests() Compared values are not the same
   Actual   (kate_document->text()): "completionMacro completionRepeatLastChange completionRep"
   Expected (expected_text)        : "completionMacro completionRepeatLastChange completionRepeatLastChange"
   Loc: [/data/kde/src/ktexteditor/autotests/src/vimode/keys.cpp(1512)]
QDEBUG : KeysTest::MarkTests() 17:15:53 - vimode_keys(7817) -  BaseTest::TestPressKey: 

---