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

Skip tests if the current LV/VeriStand version is older than minimum #29

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

buckd
Copy link
Collaborator

@buckd buckd commented Jan 29, 2019

What does this Pull Request accomplish?

Automatically skip tests that cannot be run in older versions of LV/VeriStand. The test will be skipped and the skip message will state that the current version is not compatible with the minimum version of the test.

Why should this Pull Request be merged?

We have tests that can only be run in certain versions and later. Instead of having to know to skip a test or figure out why it failed, we can automatically skip the test and provide a good reason.

What testing has been done?

Ran tests in the default version of LV (2015) with a test that sets a minimum of 2018. All tests ran except the test specifying a minimum; it was skipped. Also ran the test utilities tests to make sure this doesn't break existing tests.
testutilitiespass
skippedtest

@buckd buckd added the enhancement New feature or request label Jan 29, 2019
@buckd
Copy link
Collaborator Author

buckd commented Jan 29, 2019

Yes, I'm reimplementing the Skip Test field because the isSkipped field in TestCase.lvclass has no public/protected accessor.

@rtzoeller
Copy link
Contributor

@buckd can you file an issue on the https://github.com/JKISoftware/JKI-VI-Tester repo for the isSkipped problem? I am fine reimplementing it for now, but this seems like a nice improvement to share with others.

Copy link
Contributor

@rtzoeller rtzoeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a subtle bug where VeriStand 9999 won't skip tests created for VeriStand 10000 properly, but I'm fine deferring this for a few years. 😉

@buckd buckd merged commit bb50085 into master Jan 29, 2019
@buckd buckd deleted the dev/version-skip branch January 29, 2019 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants