mirror of
https://github.com/vxcontrol/soldr-modules.git
synced 2026-07-19 13:33:58 -04:00
[PR #41] [MERGED] Tests: move effecting code from description to setup #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/soldr-modules/pull/41
Author: @souz9
Created: 1/10/2023
Status: ✅ Merged
Merged: 1/16/2023
Merged by: @asdek
Base:
master← Head:tests-fix-setup📝 Commits (1)
9093061Tests: move effecting code from description to setup📊 Changes
2 files changed (+52 additions, -47 deletions)
View changed files
📝
tests/file_remover_client_spec.lua(+50 -45)📝
tests/proc_terminator_spec.lua(+2 -2)📄 Description
Description of the Change
In tests,
describeblock is not supposed to contain any effecting code and can contain only other busted blocks:describe,setup,it... or simple declarative expressions (with no actual action).Current implementation of the tests include running actions right inside of
describeblocks that brakes such functionality of busted asbusted --list,busted --run=test_name, etc.The change moves the code with actual actions inside
setupblocks.How to test the Change
Checklist:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.