Skip to content

[RFC]: Unit test coverage improvement #1298

Open
@MengqingCao

Description

@MengqingCao

Note: Setup test environment: https://vllm-ascend.readthedocs.io/en/latest/developer_guide/contribution/testing.html

Motivation

This issue attempt to reduce the gap of unit tests to cover the code. There is a brief architecture of ut in tests/ut/ already. We need to add more to cover all the code in vllm-ascend, and there are several principles to follow:

  1. The overall file tree should be consistent with vllm_ascend
  2. The file name should be the original file name with a prefix test_
  3. Use unittest framework, make good use of mock
  4. The UTs are all running on cpu node, mock the function related to device to host

Please refer to the official doc on contributing and testing to develop, thanks!

Unit tests need to add

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions