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 possibility to run specific test #1624

Conversation

tomrosenback
Copy link
Contributor

During the need to run all test cases defined during development of eg a new protocol is not necessary, minimize test execution time and make it easier to see results from specific test cases within test file

@tomrosenback tomrosenback deleted the makefile-run-specific-test-case branch October 4, 2021 09:14
@NiKiZe
Copy link
Collaborator

NiKiZe commented Oct 4, 2021

Personally I just run the binary testfile manually without using make to do it, @crankyoldgit do you have any other tips during development?

@tomrosenback
Copy link
Contributor Author

tomrosenback commented Oct 4, 2021

This PR is replaced by #1625 and as a comment on @NiKiZe comment, yes you can run the binary file manually, but running it through the make command builds the necessary files if needed aswell so you don´t miss out on that.

@crankyoldgit
Copy link
Owner

Personally I just run the binary testfile manually without using make to do it, @crankyoldgit do you have any other tips during development?

That's what I've done in the past too.

e.g.

# If I'm working on a particular protocol
make ir_Kelvinator_test && ./ir_Kelvinator_test
# or if I only want run a single test (because there are heaps producing errors, or I've got `DEBUG` turned on etc:
make IRutils_test && ./IRutils_test --gtest_filter=TestResultToRawArray.LargeValues

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

Successfully merging this pull request may close these issues.

3 participants