Skip to contentSkip to conversation

Documentation: KUnit: Rework KUnit documentation

PATCH Superseded Harinder Singh 1 participant 2 messages Dec 16, 2021

Subsystems (2)

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v3 cover Documentation: KUnit: Rework KUnit documentation

The KUnit documentation was not very organized. There was little information related to KUnit architecture and the importance of unit testing.

Add some new pages, expand and reorganize the existing documentation. Reword pages to make information and style more consistent.

Changes since v2:
https://lore.kernel.org/linux-kselftest/[email protected]/T/

--Reworded sentences as per comments
--Expanded the explaination in usage.rst for accessing the current test example --Standardized on US english in style.rst

Changes since v1:
https://lore.kernel.org/linux-kselftest/[email protected]/

--Fixed spelling mistakes
--Restored paragraph about kunit_tool introduction
--Added note about CONFIG_KUNIT_ALL_TESTS (Thanks Tim Bird for review comments)
-- Miscellaneous changes

Harinder Singh (7):
Documentation: KUnit: Rewrite main page
Documentation: KUnit: Rewrite getting started
Documentation: KUnit: Added KUnit Architecture
Documentation: kunit: Reorganize documentation related to running
tests
Documentation: KUnit: Rework writing page to focus on writing tests
Documentation: KUnit: Restyle Test Style and Nomenclature page
Documentation: KUnit: Restyled Frequently Asked Questions

 .../dev-tools/kunit/architecture.rst          | 206 +++++++
 Documentation/dev-tools/kunit/faq.rst         |  73 ++-
 Documentation/dev-tools/kunit/index.rst       | 172 +++---
 .../kunit/kunit_suitememorydiagram.png        | Bin 0 -> 24174 bytes
 Documentation/dev-tools/kunit/run_manual.rst  |  57 ++
 Documentation/dev-tools/kunit/run_wrapper.rst | 247 ++++++++
 Documentation/dev-tools/kunit/start.rst       | 198 +++---
 Documentation/dev-tools/kunit/style.rst       | 105 ++--
 Documentation/dev-tools/kunit/usage.rst       | 578 ++++++++----------
 9 files changed, 1049 insertions(+), 587 deletions(-)
 create mode 100644 Documentation/dev-tools/kunit/architecture.rst
 create mode 100644 Documentation/dev-tools/kunit/kunit_suitememorydiagram.png
 create mode 100644 Documentation/dev-tools/kunit/run_manual.rst
 create mode 100644 Documentation/dev-tools/kunit/run_wrapper.rst

base-commit: 4c388a8e740d3235a194f330c8ef327deef710f6

Signature · 1 line
2.34.1.173.g76aa8bc2d0-goog
#1 lore raw

Hello everyone,

Sorry by mistake I sent old patch.

Please ignore.

Thanks,
Harinder Singh

Quoted 54 lines · Harinder Singh

The KUnit documentation was not very organized. There was little information related to KUnit architecture and the importance of unit testing.

Add some new pages, expand and reorganize the existing documentation. Reword pages to make information and style more consistent.

Changes since v2:
https://lore.kernel.org/linux-kselftest/[email protected]/T/

--Reworded sentences as per comments
--Expanded the explaination in usage.rst for accessing the current test example --Standardized on US english in style.rst

Changes since v1:
https://lore.kernel.org/linux-kselftest/[email protected]/

--Fixed spelling mistakes
--Restored paragraph about kunit_tool introduction
--Added note about CONFIG_KUNIT_ALL_TESTS (Thanks Tim Bird for review comments)
-- Miscellaneous changes

Harinder Singh (7):
Documentation: KUnit: Rewrite main page
Documentation: KUnit: Rewrite getting started
Documentation: KUnit: Added KUnit Architecture
Documentation: kunit: Reorganize documentation related to running
tests
Documentation: KUnit: Rework writing page to focus on writing tests
Documentation: KUnit: Restyle Test Style and Nomenclature page
Documentation: KUnit: Restyled Frequently Asked Questions

 .../dev-tools/kunit/architecture.rst          | 206 +++++++
 Documentation/dev-tools/kunit/faq.rst         |  73 ++-
 Documentation/dev-tools/kunit/index.rst       | 172 +++---
 .../kunit/kunit_suitememorydiagram.png        | Bin 0 -> 24174 bytes
 Documentation/dev-tools/kunit/run_manual.rst  |  57 ++
 Documentation/dev-tools/kunit/run_wrapper.rst | 247 ++++++++
 Documentation/dev-tools/kunit/start.rst       | 198 +++---
 Documentation/dev-tools/kunit/style.rst       | 105 ++--
 Documentation/dev-tools/kunit/usage.rst       | 578 ++++++++----------
 9 files changed, 1049 insertions(+), 587 deletions(-)
 create mode 100644 Documentation/dev-tools/kunit/architecture.rst
 create mode 100644 Documentation/dev-tools/kunit/kunit_suitememorydiagram.png
 create mode 100644 Documentation/dev-tools/kunit/run_manual.rst
 create mode 100644 Documentation/dev-tools/kunit/run_wrapper.rst

base-commit: 4c388a8e740d3235a194f330c8ef327deef710f6 --
2.34.1.173.g76aa8bc2d0-goog