Skip to content
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

Add the ability to add several verifications for a test for different OS #78

Open
sanaroff opened this issue May 16, 2024 · 3 comments
Open

Comments

@sanaroff
Copy link
Contributor

In our project we have to keep several identical tests for different OSes due to the peculiarities of line wrapping on Windows and Linux. It would be convenient if for one test you could add several verifications with the addition of a condition for selecting which verification to use.

@vdulepov
Copy link

vdulepov commented May 16, 2024

Could you use get-by-os, and an if or a switch case for running different code branches inside of the same single test?
The built-in help has even more direct examples of putting get-by-os itself as a switch into the pipe.

@basilevs
Copy link
Contributor

@vdulepov they happen to talk about Text verification, which is implemented outside of the scripting language. The solution to select different verifications is not really suitable for the problem.

I envision a boolean parameter "Ignore line ending differences" in an existing Text verification.

@basilevs
Copy link
Contributor

basilevs commented Jun 3, 2024

On a second thought, it makes no sense to have some text verifications treat line endings differently from others. So this could be a global parameter or a permanent change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants