Stay organized with collections
Save and categorize content based on your preferences.
KTapResultParser
public
class
KTapResultParser
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.testtype.binary.KTapResultParser
|
Reads KTAP output as that produced by a KUnit test module and placed in a `results` file under
debugfs.
This implementation is based off of the official documentation, kunit_parser.py and specific
caveats found during testing. Additional logic needed:
- Indentation is ignored because it's not consistent across usage.
- Line starting with "# Subtest:" is required to properly nest into subtest groups. This
approach was taken from kunit_parser.py.
- Sometimes a "- " proceeds the test name and diagnostic data when a '#' isn't used. When
it's encountered it's stripped off.
- The test name can technically have any character besides '#'. This will probably become an
issue when getting translated to TF test results. For now only post processing is to
replace spaces with underscores.
Summary
Public constructors
KTapResultParser
public KTapResultParser ()
Public methods
applyKTapResultToListener
public static void applyKTapResultToListener (ITestInvocationListener listener,
String testRunName,
ktapFileContentList,
KTapResultParser.ParseResolution resolution)
Parameters |
listener |
ITestInvocationListener |
testRunName |
String |
ktapFileContentList |
|
resolution |
KTapResultParser.ParseResolution |
applyKTapResultToListener
public static void applyKTapResultToListener (ITestInvocationListener listener,
String testRunName,
ktapFileContentList,
KTapResultParser.ParseResolution resolution,
boolean rearrangeClassMethod)
Parameters |
listener |
ITestInvocationListener |
testRunName |
String |
ktapFileContentList |
|
resolution |
KTapResultParser.ParseResolution |
rearrangeClassMethod |
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-10-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-08 UTC."],[],[]]