Skip to content
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

wip: add integration testing guidelines #6

Conversation

KeisukeShima
Copy link

@KeisukeShima KeisukeShima commented Mar 4, 2022

[upstreamへのPR作成前のディスカッション用です]

今度こそT4へPRを作成したはず!

変更内容

  • interface testの説明を追加
  • リファレンスを最下部へ移動
  • 改行の位置を調整
  • コード種類の不要な{}を削除

Geoffrey Biggs and others added 3 commits February 14, 2022 23:44
Reorganize documentation structure

Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>

Squashed 'src/external/mpc/' changes from 8fc7cfdd..eaa5908b

eaa5908b Merge branch 'input-weight-modify' into 'master'
b9ee8e4f Update default mpc_controller_node parameters
8d15f49d Add weights to acceleration and steer controls; loosen simulation test case:

git-subtree-dir: src/external/mpc
git-subtree-split: eaa5908bdd987051a9dcd9c505f99bfd7f028547

[!821] Fix numerours code highlighting and markup issues, add TOCs

- TOC still missing on design docs

[!835] Add AVP instructions to docs

Other improvements of the docs include

- table-of-contents generation fixed
- replace links to external markdown files with HTML. Not sure why doxygen doesn't complain in CI, it failed with version 1.8.13 in my ADE
- spell checking of numerous documents
- remove subtree doc

[#912] Make code snippet blocks consistent in documentation

[#949] Update docs on integration testing

Fix command for running the launch test in integration-testing.md

[#1224] Port other packages with smoke tests to use autoware_testing
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
Signed-off-by: Keisuke Shima <19993104+KeisukeShima@users.noreply.github.com>
@KeisukeShima KeisukeShima changed the title Add integration testing guidelines wip: add integration testing guidelines Mar 4, 2022

This API is not suitable for all smoke test cases. For example, it can not be used when some specific file location, like map, is required to be passed to the node or some preparation need to be conducted before node launch. In such cases use manual solution from [section below](#integration-test-with-a-single-node-component-test).

### Interface tests
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この項目は新規追加しました。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

それは良さそうですが、テストの全体像を先に書く必要がありそうです。
別のPRにありましたっけ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(これか https://github.com/autowarefoundation/autoware.universe/pull/391)
こちらもautoware-documentationに持ってきた方が良さそうです。

Copy link

@kenji-miyake kenji-miyake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss this PR tomorrow!

self.msgs.append(msg)

def get_message(self):
startlen = len(self.msgs)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
startlen = len(self.msgs)
start_len = len(self.msgs)


- Incompatible interaction between nodes, such as non-matching topics, different message types, or incompatible QoS settings
- Reveal edge cases that were not touched with unit tests, such as a critical timing issue, network communication delay, disk I/O failure, and many other problems that can occur in production environments
- Using tools like `stress` and `udpreplay`, performance of nodes is tested with real data or while the system is under high CPU/memory load, where situations such as `malloc` failures can be detected

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,293 @@
# Integration Testing

## Introduction

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can write an overview right below the title.

Suggested change
## Introduction


## Introduction

This article motivates developers to adopt integration testing by explaining how to write, run, and evaluate the results of integration tests.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's read and follow the Google developer documentation style guide as much as possible. 👍
https://developers.google.com/style/translation?hl=en#write-short,-clear,-and-precise-sentences

In this case, I think we can write like this:

Suggested change
This article motivates developers to adopt integration testing by explaining how to write, run, and evaluate the results of integration tests.
This article explains how to write integration tests.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


This API is not suitable for all smoke test cases. For example, it can not be used when some specific file location, like map, is required to be passed to the node or some preparation need to be conducted before node launch. In such cases use manual solution from [section below](#integration-test-with-a-single-node-component-test).

### Interface tests

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

それは良さそうですが、テストの全体像を先に書く必要がありそうです。
別のPRにありましたっけ?

launch_testing.asserts.assertExitCodes(proc_info, process=ndt_mapper)
```

## Running the test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move the descriptions about how to run tests to another page.
We need to keep pages short and simple.

@kenji-miyake kenji-miyake added the documentation Improvements or additions to documentation label Mar 9, 2022
KeisukeShima and others added 3 commits March 10, 2022 17:23
Signed-off-by: Keisuke Shima <19993104+KeisukeShima@users.noreply.github.com>
…keShima/autoware-documentation into add-integration-testing-guidelines
@KeisukeShima KeisukeShima deleted the add-integration-testing-guidelines branch October 12, 2022 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants