Startup

单元测试的核心价值在于两点:

更加精确地定义某段代码的作用,从而使代码的耦合性更低

避免程序员写出不符合预期的代码,以及因新增功能而带来的Regression Bug

随着Test-Driven方法论的流行,测试类库对于高级语言来说变得不可或缺。Python生态圈中的unit testing framework相当多,不同于Java几乎只有JUnit与TestNG二选一,Python unittest框架中较为活跃并也有较多使用者的framework就有unittest、unittest2、nose、nose2与py.test等。不计其他较小众的工具,光是要搞懂这些工具并从中挑选一个合适的出来使用就让人头大了。本文因此总结了这些类库在实战中的作用,以便读者在选择时方便比对参考。

这里是介绍Python测试的官方文档:

本文在该文档的基础上删减了入门部分,增加了深入讲解和实战案例。

类库

Unittest

Unittest的标准文档在这里:

Unittest是Python标准库的一部分。它是目前最流行的固件测试框架XUnit在Python中的实现,如果你接触过Junit,nUnit,或者CppUnit,你会非常熟悉它的API。

Unittest框架的单元测试类用例通过继承unittest.TestCase来实现,看起来像是这样:

import unittest

def fun(x):

return x + 1

class MyTest(unittest.TestCase):

def test(self):

self.assertEqual(fun(3), 4)

Unittest一共包含4个概念:

Test Fixture,就是Setup()和TearDown()

Test Case,一个Test Case就是一个测试用例,他们都是unittest.TestCase类的子类的方法

Test Suite,Test Suite是一个测试用例集合,基本上你用不到它,用unittest.main()或者其它发现机制来运行所有的测试用例就对了。 :)

Test runner,这是单元测试结果的呈现接口,你可以定制自己喜欢的呈现方式,比如GUI界面,基本上你也用不到它。

一些实战中需要用到的技巧:

发现机制

python -m unittest discover -s Project/Test/Directory -p "*test*"

# 等同于

python -m unittest discover -s Project/Test/Directory

用Assert,不要用FailUnless(它们已经被废弃)

Deprecated.png

常用的Assert

NormalAssert.png

特殊的Assert

SpecificAssert.png

For example:

assertAlmostEqual(1.1, 3.3-2.15, places=1)

SpecificEqual.png

AssertException

AssertException.png

assertRaises

assertRaises(exception, callable, *args, **kwds)

def raisesIOError(*args, **kwds):

raise IOError("TestIOError")

class FixtureTest(unittest.TestCase):

def test1(self):

self.asertRaises(IOError, raisesIOError)

if __name__ == '__main__':

unittest.main()

assertRaises(exception)

# If only the exception argument is given,

# returns a context manager so that the code

# under test can be written inline rather

# than as a function

with self.assertRaises(SomeException):

do_something()

# The context manager will store the caught

# exception object in its exception attribute.

# This can be useful if the intention is to

# perform additional checks on the exception raised

with self.assertRaises(SomeException) as cm:

do_something()

the_exception = cm.exception

self.assertEqual(the_exception.error_code, 3)

assertRaisesRegexp

self.assertRaisesRegexp(ValueError, "invalid literal for.*XYZ'$", int, 'XYZ')

# or

with self.assertRaisesRegexp(ValueError, 'literal'):

int('XYZ')

Skip,出于各种原因,你可能需要暂时跳过一些测试用例(而不是删除它们)

class MyTestCase(unittest.TestCase):

@unittest.skip("demonstrating skipping")

def test_nothing(self):

self.fail("shouldn't happen")

@unittest.skipIf(mylib.__version__ < (1, 3),

"not supported in this library version")

def test_format(self):

# Tests that work for only a certain version of the library.

pass

@unittest.skipUnless(sys.platform.startswith("win"), "requires Windows")

def test_windows_support(self):

# windows specific testing code

pass

Class level fixtures

import unittest

class Test(unittest.TestCase):

@classmethod

def setUpClass(cls):

cls._connection = createExpensiveConnectionObject()

@classmethod

def tearDownClass(cls):

cls._connection.destroy()

Module level fixtures

# These should be implemented as functions:

def setUpModule():

createConnection()

def tearDownModule():

closeConnection()

Mock

Mock类库是一个专门用于在unittest过程中制作(伪造)和修改(篡改)测试对象的类库,制作和修改的目的是避免这些对象在单元测试过程中依赖外部资源(网络资源,数据库连接,其它服务以及耗时过长等)。Mock是一个如此重要的类库,如果没有它,Unittest框架从功能上来说就是不完整的。所以不能理解为何它没有出现在Python2的标准库里,不过我们可以很高兴地看到在Python3中mock已经是unittest框架的一部分。

猴子补丁,Monkey-patching is the technique of swapping functions or methods with others in order to change a module, library or class behavior.

>>> class Class():

... def add(self, x, y):

... return x + y

...

>>> inst = Class()

>>> def not_exactly_add(self, x, y):

... return x * y

...

>>> Class.add = not_exactly_add

>>> inst.add(3, 3)

9

Mock对象

return_value: 设置Mock方法的返回值

>>> from mock import Mock

>>> class ProductionClass(): pass

...

>>> real = ProductionClass()

>>> real.method = Mock(return_value=3)

>>> real.method(3, 4, 5, key='value')

3

>>> real.method.assert_called_with(3, 4, 5, key='value')

>>> real.method.assert_called_with(3, 4, key='value')

Traceback (most recent call last):

File "", line 1, in

File "/usr/local/lib/python2.7/site-packages/mock/mock.py", line 937, in assert_called_with

six.raise_from(AssertionError(_error_message(cause)), cause)

File "/usr/local/lib/python2.7/site-packages/six.py", line 718, in raise_from

raise value

AssertionError: Expected call: mock(3, 4, key='value')

Actual call: mock(3, 4, 5, key='value')

side_effect:

调用Mock方法时,抛出异常

>>> mock = Mock(side_effect=KeyError('foo'))

>>> mock()

Traceback (most recent call last):

...

KeyError: 'foo'

>>> mock = Mock()

>>> mock.return_value = 42

>>> mock()

42

调用Mock方法时,根据参数得到不同的返回值

>>> values = {'a': 1, 'b': 2, 'c': 3}

>>> def side_effect(arg):

... return values[arg]

...

>>> mock.side_effect = side_effect

>>> mock('a'), mock('b'), mock('c')

(1, 2, 3)

模拟生成器

>>> mock.side_effect = [5, 4, 3, 2, 1]

>>> mock()

5

>>> mock(), mock(), mock(), mock()

(4, 3, 2, 1)

>>> mock()

Traceback (most recent call last):

File "", line 1, in

File "/usr/local/lib/python2.7/site-packages/mock/mock.py", line 1062, in __call__

return _mock_self._mock_call(*args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/mock/mock.py", line 1121, in _mock_call

result = next(effect)

File "/usr/local/lib/python2.7/site-packages/mock/mock.py", line 109, in next

return _next(obj)

StopIteration

patch:在函数(function)或者环境管理协议(with)中模拟对象,离开函数或者环境管理器范围后模拟行为结束。

在函数中

from mock import patch

class AClass(object): pass

class BClass(object): pass

print id(AClass), id(BClass)

@patch('__main__.AClass')

@patch('__main__.BClass')

def test(x, MockClass2, MockClass1):

print id(AClass), id(BClass)

print id(MockClass1), id(MockClass2)

print AClass

print AClass()

assert MockClass1.called

print x

test(42)

# output:

"""

140254580491744 140254580492688

4525648336 4517777552

4525648336 4517777552

42

"""

在环境管理协议中

>>> class Class(object):

... def method(self):

... pass

...

>>> with patch('__main__.Class') as MockClass:

... instance = MockClass.return_value

... instance.method.return_value = 'foo'

... assert Class() is instance

... assert Class().method() == 'foo'

...

Spec Set的写法,你应该用不到

>>> Original = Class

>>> patcher = patch('__main__.Class', spec=True)

>>> MockClass = patcher.start()

>>> instance = MockClass()

>>> assert isinstance(instance, Original)

>>> patcher.stop()

patch.object: 在函数或者环境管理协议中模拟对象,但只mock其中一个attribute

from mock import patch

class AClass():

def method(self, *arg):

return 42

with patch.object(AClass, 'method') as mock_method:

mock_method.return_value = "Fake"

real = AClass()

print real.method(1, 2, 3) # Fake

mock_method.assert_called_once_with(1, 2, 3)

print real.method(1, 2, 3) # 42

patch.dict: patch.dict can be used to add members to a dictionary, or simply let a test change a dictionary, and ensure the dictionary is restored when the test ends.

patch.dict(in_dict, values=(), clear=False, **kwargs)

If clear is True then the dictionary will be cleared before the new values are set.

>>> from mock import patch

>>> foo = {}

>>> with patch.dict(foo, {'newkey': 'newvalue'}):

... assert foo == {'newkey': 'newvalue'}

...

>>> assert foo == {}

>>> import os

>>> with patch.dict('os.environ', {'newkey': 'newvalue'}):

... print os.environ['newkey']

...

newvalue

>>> assert 'newkey' not in os.environ

- patch.multiple: Perform multiple patches in a single call.

>>> thing = object()

>>> other = object()

>>> @patch.multiple('__main__', thing=DEFAULT, other=DEFAULT)

... def test_function(thing, other):

... assert isinstance(thing, MagicMock)

... assert isinstance(other, MagicMock)

...

>>> test_function()

>>> @patch('sys.exit')

... @patch.multiple('__main__', thing=DEFAULT, other=DEFAULT)

... def test_function(mock_exit, other, thing):

... assert 'other' in repr(other)

... assert 'thing' in repr(thing)

... assert 'exit' in repr(mock_exit)

...

>>> test_function()

MagicMock: MagicMock是Mock的子类。MagicMock is a subclass of Mock with default implementations of most of the magic methods. You can use MagicMock without having to configure the magic methods yourself.

MagicMock的功能完全cover Mock,比如:

from mock import MagicMock

thing = ProductionClass()

thing.method = MagicMock(return_value=3)

thing.method(3, 4, 5, key='value') # return 3

thing.method.assert_called_with(3, 4, 5, key='value')

MagicMock相对于Mock的优势:

>>> from mock import MagicMock

>>> mock = MagicMock()

>>> mock.__str__.return_value = 'foobarbaz'

>>> str(mock)

'foobarbaz'

>>> mock.__str__.assert_called_once_with()

原来需要:

>>> from mock import Mock

>>> mock = Mock()

>>> mock.__str__ = Mock(return_value = 'wheeeeee')

>>> str(mock)

'wheeeeee'

create_autospec: 使Mock对象拥有和原对象相同的字段和方法,对于方法对象,则拥有相同的签名

>>> from mock import create_autospec

>>> def function(a, b, c):

... pass

...

>>> mock_function = create_autospec(function, return_value='fishy')

>>> mock_function(1, 2, 3)

'fishy'

>>> mock_function.assert_called_once_with(1, 2, 3)

>>> mock_function('wrong arguments')

Traceback (most recent call last):

...

TypeError: () takes exactly 3 arguments (1 given)

>>> from mock import create_autospec

>>>

>>> mockStr = create_autospec(str)

>>> print mockStr.__add__("d", "e")

Unittest2

Unittest2致力于将Python2.7及以后版本上unittest框架的新特性移植(backport)到Python2.4~Python2.6平台中。

Backport是将一个软件补丁应用到比该补丁所对应的版本更老的版本的行为。

你知道这些就可以了,基本上你不会用到它。

py.test

pytest是另一种固件测试框架,它的API设计非常简洁优雅,完全脱离了XUnit的窠臼(unittest是XUnit在Python中的实现)。但这也正是它的缺点,unittest是标准库的一部分,用者甚众,与之大异难免曲高和寡。

py.test功能完备,并且可扩展,但是它语法很简单。创建一个测试组件和写一个带有诸多函数的模块一样容易,来看一个例子

# content of test_sample.py

def func(x):

return x + 1

def test_answer():

assert func(3) == 5

运行一下:

$ py.test

============= test session starts =============

platform darwin -- Python 2.7.11, pytest-2.9.2, py-1.4.31, pluggy-0.3.1

rootdir: /Users/wuwenxiang/Documents/workspace/testPyDev, inifile:

collected 1 items

some_test.py F

================== FAILURES ===================

_________________ test_answer _________________

def test_answer():

> assert func(3) == 5

E assert 4 == 5

E + where 4 = func(3)

some_test.py:6: AssertionError

========== 1 failed in 0.01 seconds ===========

官方文档中入门的例子在这里,pytest也给出了unittest Style的兼容写法示例,然并X,看完之后你会发现:圈子不同,不必强融,这句话还真TM有道理。

py.test的setup/teardown语法与unittest的兼容性不高,实现方式也不直观。

我们来看一下setup/teardown的例子:

# some_test.py

import pytest

@pytest.fixture(scope='function')

def setup_function(request):

def teardown_function():

print("teardown_function called.")

request.addfinalizer(teardown_function)

print('setup_function called.')

@pytest.fixture(scope='module')

def setup_module(request):

def teardown_module():

print("teardown_module called.")

request.addfinalizer(teardown_module)

print('setup_module called.')

def test_1(setup_function):

print('Test_1 called.')

def test_2(setup_module):

print('Test_2 called.')

def test_3(setup_module):

print('Test_3 called.')

pytest创建固件测试环境(fixture)的方式如上例所示,通过显式指定scope=''参数来选择需要使用的pytest.fixture装饰器。即一个fixture函数的类型从你定义它的时候就确定了,这与使用@nose.with_setup()不同。对于scope='function'的fixture函数,它就是会在测试用例的前后分别调用setup/teardown。测试用例的参数如def test_1(setup_function)只负责引用具体的对象,它并不关心对方的作用域是函数级的还是模块级的。

有效的 scope 参数限于:function, module, class, session,默认为function。

运行上例:$ py.test some_test.py -s。-s用于显示print()函数

执行效果:

$ py.test -s some_test.py

============= test session starts =============

platform darwin -- Python 2.7.11, pytest-2.9.2, py-1.4.31, pluggy-0.3.1

rootdir: /Users/wuwenxiang/Documents/workspace/testPyDev, inifile:

collected 3 items

some_test.py setup_function called.

Test_1 called.

.teardown_function called.

setup_module called.

Test_2 called.

.Test_3 called.

.teardown_module called.

========== 3 passed in 0.01 seconds ===========

这里需要注意的地方是:setup_module被调用的位置。

Nose

nose广为流传,它主要用于配置和运行各种框架下的测试用例,有更简洁友好的测试用例发现功能。nose的自动发现策略是会遍历文件夹,搜索特征文件(默认是搜索文件名中带test的文件)

$ nosetests

F.

======================================================================

FAIL: some_test.test_answer

----------------------------------------------------------------------

Traceback (most recent call last):

File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/Users/wuwenxiang/Documents/workspace/testPyDev/some_test.py", line 6, in test_answer

assert func(3) == 5

AssertionError

----------------------------------------------------------------------

Ran 2 tests in 0.004s

FAILED (failures=1)

很可惜,官网说:Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.

Nose2是Nose的原班人马开发。nose2 is being developed by the same people who maintain nose.

Nose2是基于unittest2 plugins分支开发的,但并不支持python2.6之前的版本。Nose2致力于做更好的Nose,它的Plugin API并不兼容之前Nose的API,所以如果你migration from Nose,必须重写这些plugin。nose2 implements a new plugin API based on the work done by Michael Foord in unittest2’s plugins branch. This API is greatly superior to the one in nose, especially in how it allows plugins to interact with each other. But it is different enough from the API in nose that supporting nose plugins in nose2 will not be practical: plugins must be rewritten to work with nose2.

然而……

Nose2的更新……也很有限……

其作者Jason Pellerin先生坦言他目前(2014年)并没有多余的时间进行personal projects的开发,每周对nose与nose2的实际开发时间大概只有30分钟,在这种情况下,nose与nose2都将很难再有大的改版与修正。

Green

不同与nose/nose2,green是单纯为了强化unittest中test runner功能而出现的工具。green所提供的只有一个功能强大、使用方便、测试报告美观的test runner。如果你的项目中的测试都是以传统unittest module撰写而成的话,green会是一个很好的test runner选择。

使用green执行测试:

pip install green

cd path/to/project

green

Doctest

Doctest的标准文档在这里:

Doctest看起来像是在交互式运行环境中的输出,事实上也确实如此 :)

def square(x):

"""Squares x.

>>> square(2)

4

>>> square(-2)

4

"""

return x * x

if __name__ == '__main__':

import doctest

doctest.testmod()

Doctest的作用是作为函数/类/模块等单元的解释和表述性文档。所以它们有如下特点:

只有期望对外公开的单元会提供doctest

这些doctest通常不是很细致

编写doctest测试基本不需要学习新技能点,在交互式环境里运行一下,然后把输出结果检查一下贴过来就可以了。

doctest还有一些高级用法,但基本上用不到,用到的时候再去查标准文档好了。 :)

Mox

Mox是Java EasyMock框架在Python中的实现。它一个过时的,很像mock的类库。从现在开始,你应该放弃学习Mox,在任何情况下都用Mock就对了。

Mox is a mock object framework for Python based on the Java mock object framework EasyMock.

New uses of this library are discouraged.

People are encouraged to use https://pypi.python.org/pypi/mock instead which matches the unittest.mock library available in Python 3.

Mox3 是一个非官方的类库,是mox的Python3兼容版本

Mox3 is an unofficial port of the Google mox framework (http://code.google.com/p/pymox/) to Python 3.

It was meant to be as compatible with mox as possible, but small enhancements have been made.

The library was tested on Python version 3.2, 2.7 and 2.6.

Use at your own risk ;)

其它

tox(官方文档): 一个自动化测试框架

checking your package installs correctly with different Python versions and interpreters

running your tests in each of the environments, configuring your test tool of choice

acting as a frontend to Continuous Integration servers, greatly reducing boilerplate and merging CI and shell-based testing.

Basic example:

# content of: tox.ini , put in same dir as setup.py

[tox]

envlist = py26,py27

[testenv]

deps=pytest # install pytest in the venvs

commands=py.test # or 'nosetests' or ...

You can also try generating a tox.ini file automatically, by running tox-quickstart and then answering a few simple questions.

To sdist-package, install and test your project against Python2.6 and Python2.7, just type: tox

testr(官方文档): 是一个test runner。

Django的Unittest(官方文档)

官方文档推荐用Unittest:The preferred way to write tests in Django is using the unittest module built in to the Python standard library.

django.test.TestCase继承了unittest.TestCase

Here is an example which subclasses from django.test.TestCase, which is a subclass of unittest.TestCase that runs each test inside a transaction to provide isolation:

from django.test import TestCase

from myapp.models import Animal

class AnimalTestCase(TestCase):

def setUp(self):

Animal.objects.create(name="lion", sound="roar")

Animal.objects.create(name="cat", sound="meow")

def test_animals_can_speak(self):

"""Animals that can speak are correctly identified"""

lion = Animal.objects.get(name="lion")

cat = Animal.objects.get(name="cat")

self.assertEqual(lion.speak(), 'The lion says "roar"')

self.assertEqual(cat.speak(), 'The cat says "meow"')

Flask的Unittest

官方文档中介绍:Flask provides a way to test your application by exposing the Werkzeug test Client and handling the context locals for you. You can then use that with your favourite testing solution. In this documentation we will use the unittest package that comes pre-installed with Python.

app.test_client()

app = flask.Flask(__name__)

with app.test_client() as c:

rv = c.get('/?tequila=42')

assert request.args['tequila'] == '42'

Unittest with Flask

class FlaskrTestCase(unittest.TestCase):

def setUp(self):

self.db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()

self.app = flaskr.app.test_client()

flaskr.init_db()

def tearDown(self):

os.close(self.db_fd)

os.unlink(flaskr.app.config['DATABASE'])

def test_empty_db(self):

rv = self.app.get('/')

assert b'No entries here so far' in rv.data

@app.route("/ajax/")

def some_json():

return jsonify(success=True)

class TestViews(TestCase):

def test_some_json(self):

response = self.client.get("/ajax/")

self.assertEquals(response.json, dict(success=True))

建议和总结

在项目中尽量不要mix多种功能类似的框架。

你可以选unittest + green,或者nose/nose2(依使用Python版本和项目的历史遗留而定) ,或者pytest,但是尽量不要混合使用。

关于Unittest

如果没有特别的原因,新项目应该用unittest。

Unittest中要用Assert,不要用FailUnless

Django和Flask中都应该用unittest框架,他们也都提供了一个unittest.TestCase的子类以便于做与WebServer想关的测试

关于Mock

如果要Mock一个对象,用MagicMock

如果要在函数或者with-statment中Mock一个对象,用patch

如果要在函数或者with-statement中Mock一个对象的属性,用patch.object

如果要在函数或者with-statement中Mock一个字典(增加或重建一个键值对),用patch.dict

如果要在函数或者with-statement中一次Patch多个Mock对象,用patch.multiple

如果希望Mock对象拥有和原对象相同的字段和方法(对于方法对象,则拥有相同的签名),用create_autospec。

python unit test_Python Unittest相关推荐

  1. python unit test_python 中unittest单元测试为什么addTest没用。

    #! /usr/bin/env python #! -*-cording:utf-8 -*- import unittest from appium import webdriver import t ...

  2. python自动化测试之unittest简介讲解

    前言 小伙伴们好呀,我们都知道java有很常见的单元测试框架Junit和TestNG,那么python里面也有单元测试框架-unittest,相当于是一个python版的junit.python里面的 ...

  3. Python单元测试及unittest框架用法实例解析

    例题取用登录模块:代码如下 def login_check(username,password):''' 登录校验的函数:param username:账号:param password: 密码:re ...

  4. python 接口自动化unittest+DingtalkChatbot钉钉机器人消息封装

    python 接口自动化unittest+DingtalkChatbot机器人消息封装 安装DingtalkChatbot: pip install DingtalkChatbot 钉钉配置机器人: ...

  5. python unit test 访问开发代码,使用Python的unittest模块作为testrunner时,如何在测试前运行初始化代码?...

    How can a user of a library run his own initialization code (setting debug levels of loggers for exa ...

  6. python unit test什么意思_Pycharm上python和unittest两种姿势傻傻分不清楚

    前言 这种问题先检查代码,确定是一样的,那就是运行姿势不对了,一旦导入unittest模块,pycharm会自动识别以unittest的姿势去运行了. 一.unittest运行单个用例 1.如下代码, ...

  7. python unit test 访问开发代码_python unittest 源码分析

    unittest单元测试框架总结 unittest单元测试框架既可以适用于单元测试,也能够适用WEB自动化测试用例的开发与执行,该测试框架可组织执行测试用例,并且提供了丰富的断言方法,判断测试用例是否 ...

  8. python单元测试之unittest框架使用

    一.什么是单元测试 单元测试是用来对一个模块.一个函数或者一个类来进行正确性检验的测试工作. 比如对于函数abs(),我们可以编写的测试用例为: (1)输入正数,比如1.1.2.0.99,期待返回值与 ...

  9. python单元测试框架—unittest

    目录 unittest核心工作原理 unittest示例 示例1:简单示例 示例2:setUpClass()和tearDownClass() 示例3:通过在测试用例方法名中添加数字test_N指定执行 ...

最新文章

  1. 如何在Bash脚本中将DOS / Windows换行符(CRLF)转换为Unix换行符(LF)?
  2. 20种处理照片的PS技术
  3. mysql主从切换gtid不一致_GTID 复制、主从不一致跳过操作、快速切换master
  4. FireFox IE Opera Safari 都可以正常播放WMV和MOV的网页播放器代码
  5. Queue)) 类,msdn上的一篇文章,便于查看
  6. Vue.js2.0核心思想
  7. webpack自动化构建脚本指令npm run dev/build
  8. M1芯片MacBook pro重装系统出现报错情况的解决方法
  9. 1011. A+B和C (15)-PAT乙级真题
  10. android获取某应用的帧数据
  11. *第六周*数据结构实践项目一【建立顺序栈算法库】
  12. matlab中找不到指定的模块,Matlab装好后启动提示找不到指定模块如何解决?很急...
  13. 并查集详解(C/C++)
  14. 读书笔记之《梁宁增长思维30讲》
  15. Qt-Q_OBJECT宏及控件提升导致的类重定义问题
  16. 如何用好消息推送为app拉新、留存、促活
  17. 使用photoshop2021对有阴影的背光摄影照片进行调色修改
  18. 微信公众号消息如何添加小程序链接
  19. 计算机网络(Vlan划分)
  20. 音频降噪的软件有哪些?快来看看这些软件

热门文章

  1. 嘉年华回顾丨房晓乐带你解密TiDB 的技术演进及生态发展​
  2. MySQL关于Table cache设置,看这一篇就够了
  3. 详述一次大量删除导致MySQL慢查的过程
  4. 谁说count(*) 性能最差,我需要跟你聊聊
  5. 华为云举办AI经典论文复现活动,打造领先AI开发者学习社区
  6. 直播带货时画质总是太差,你的视频转码方案可能要换了
  7. 【华为云技术分享】大数据容器化成趋势,华为云BigData Pro一马当先
  8. 【华为云技术分享】敏捷开发落地不实际?原因可能在于你的 IDE 工具
  9. webpack4.0各个击破(5)—— Module篇
  10. 华为云流媒体性能测试解决方案 轻松应对流量危机