文档与测试实战

Python 中的软件工程原理

Adam Spannbauer

Machine Learning Engineer at Eastman

用 Sphinx 编写项目文档

  示例 Sphinx 页面

Python 中的软件工程原理

为类编写文档

class Document:
    """Analyze text data

    :param text: text to analyze

    :ivar text: text originally passed to the instance on creation
    :ivar tokens: Parsed list of words from text
    :ivar word_counts: Counter containing counts of hashtags used in text
    """
    def __init__(self, text):
        ...
Python 中的软件工程原理

持续集成测试

    Travis CI 标志

Travis 输出示例 - 失败

Python 中的软件工程原理

持续集成测试

  Travis 输出示例 - 通过

Python 中的软件工程原理

链接与补充工具

Python 中的软件工程原理

Passons à la pratique !

Python 中的软件工程原理

Preparing Video For Download...