Skip to content

clarify 'strict' behaviour in tap tests #2703

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

Closed
TarantoolBot opened this issue Feb 21, 2022 · 0 comments · Fixed by #3010
Closed

clarify 'strict' behaviour in tap tests #2703

TarantoolBot opened this issue Feb 21, 2022 · 0 comments · Fixed by #3010
Labels
behavior change [nature] Сhange in existing behavior example Problem with a code example. reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Feb 21, 2022

Product: Tarantool
Since: product version
Audience/target: dev
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/tap/
SME: @ olegrok


Defined for root tap object strict mode will be the same for all
subtests.

Example:

t = require('tap').test('123')
t.strict = true

t:is_deeply({a = box.NULL}, {}) -- false

t:test('subtest', function(t)
    t:is_deeply({a = box.NULL}, {}) -- also false
end)

Requested by @olegrok in tarantool/tarantool@676582c.

@patiencedaur patiencedaur added ecosystem [area] Task relates to Tarantool's ecosystem (connector, module, other non-server functionality) server [area] Task relates to Tarantool's server (core) functionality reference [location] Tarantool manual, Reference part feature A new functionality behavior change [nature] Сhange in existing behavior example Problem with a code example. and removed ecosystem [area] Task relates to Tarantool's ecosystem (connector, module, other non-server functionality) feature A new functionality labels Feb 22, 2022
patiencedaur added a commit that referenced this issue Jul 8, 2022
patiencedaur added a commit that referenced this issue Jul 8, 2022
patiencedaur added a commit that referenced this issue Jul 8, 2022
* Clarify taptest.strict behavior
* Format headings by style guide

Resolves #2703
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behavior change [nature] Сhange in existing behavior example Problem with a code example. reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants