Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
c8d3bd8c
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c8d3bd8c
编写于
6月 09, 2015
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #650 from clebergnu/doc_review_2nd_round_v2
Documentation Review (2nd round) - (v2)
上级
4e882480
6bf9d236
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
55 addition
and
8 deletion
+55
-8
docs/source/Introduction.rst
docs/source/Introduction.rst
+7
-8
docs/source/ReferenceGuide.rst
docs/source/ReferenceGuide.rst
+48
-0
未找到文件。
docs/source/Introduction.rst
浏览文件 @
c8d3bd8c
...
...
@@ -9,16 +9,15 @@ One can call it a test framework with benefits. Native tests are
written in Python and they follow the :mod:`unittest` pattern, but any
executable can serve as a test.
Avocado is composed
by
:
Avocado is composed
of
:
* A test runner that lets you execute tests. Those tests can be either written
o
n your
language of choice, or
use the Python API available. In both cases, you get
facilities such as automated log and system information collection.
* A test runner that lets you execute tests. Those tests can be either written
i
n your
language of choice, or
be written in Python and use the available libraries. In both
cases, you get
facilities such as automated log and system information collection.
* APIs that help you write tests in a concise, yet expressive way.
The Test API is the whole set of modules, classes and functions available
under the :mod:`avocado` main module, excluding the :mod:`avocado.core`
module and their submodules, which is part of application's infrastructure.
* Libraries that help you write tests in a concise, yet expressive and powerful way.
You can find more information about what libraries are intended for test writers
at :ref:`libraries-apis`.
* :mod:`Plugins <avocado.core.plugins>` that can extend and add new functionality
to the Avocado Framework.
...
...
docs/source/ReferenceGuide.rst
浏览文件 @
c8d3bd8c
...
...
@@ -47,6 +47,54 @@ Simple
Any executable in your box. The criteria for PASS/FAIL is the return code of the executable.
If it returns 0, the test PASSes, if it returns anything else, it FAILs.
.. _libraries-apis:
Libraries and APIs
==================
The Avocado libraries and its APIs are a big part of what Avocado is.
But, to avoid having any issues you should understand what parts of the Avocado
libraries are intended for test writers and their respective API stability promises.
Test APIs
---------
At the most basic level there's the Test APIs which you should use when writing
tests in Python and planning to make use of any other utility library.
The Test APIs can be found in the :mod:`avocado` main module, and its most important
member is the :class:`avocado.Test` class. By conforming to the :class:`avocado.Test`
API, that is, by inheriting from it, you can use the full set of utility libraries.
The Test APIs are guaranteed to be stable across a single major version of Avocado.
That means that a test written for a given version of Avocado should not break on later
minor versions because of Test API changes.
Utility Libraries
-----------------
There are also a large number of utility libraries that can be found under the
:mod:`avocado.utils` namespace. These are very general in nature and can help you
speed up your test development.
The utility libraries may receive incompatible changes across minor versions, but
these will be done in a staged fashion. If a given change to an utility library
can cause test breakage, it will first be documented and/or deprecated, and only
on the next subsequent minor version it will actually be changed.
What this means is that upon updating to later minor versions of Avocado, you
should look at the Avocado Release Notes for changes that may impact your tests.
Core (Application) Libraries
----------------------------
Finally, everything under :mod:`avocado.core` is part of the application's
infrastructure and should not be used by tests.
Extensions and Plugins can use the core libraries, but API stability is not
guaranteed at any level.
Test Resolution
===============
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录