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

Unit and Integration Testing in SMACC2 #550

Open
NithishkumarS opened this issue Jul 18, 2024 · 2 comments
Open

Unit and Integration Testing in SMACC2 #550

NithishkumarS opened this issue Jul 18, 2024 · 2 comments

Comments

@NithishkumarS
Copy link

I have been exploring the SMACC2 framework and am looking for some guidance on the best practices for testing, specifically regarding unit testing and functional testing. I have a few questions:

Unit Testing:

1.How should unit tests be structured in SMACC2, especially when there are dependencies on orthogonals, clients, or other components?
2. Are there any recommended approaches or tools for mocking these dependencies to isolate the unit under test?

Integration Testing:

  1. What is the recommended way to conduct functional tests that involve multiple orthogonals, clients, and their interactions?
  2. How can transitions between states be tested effectively in a functional test? Are there specific frameworks or tools that are particularly useful for this purpose in the context of SMACC2?

Any examples, documentation, or tips you can provide would be greatly appreciated. Thank you for your support.

Environment (please complete the following information):

ROS DETAILS

  • OS: Ubuntu 22.04 LTS
  • Version Humble
@NithishkumarS NithishkumarS changed the title Unit and Functional Testing in SMACC2 Unit and Integration Testing in SMACC2 Jul 18, 2024
@NithishkumarS
Copy link
Author

Are there any recommendations for testing in SMACC2?

@RobotBramhana
Copy link

@NithishkumarS I don't think that's possible, Ideally, we have to create a library for unit tests in SMACC function from which which can then the called by the applications developed on top of it. From the code that I went through, I think it is not possible as of now. One possibility is that, the open source community will have to add those changes. Else, you will have to depend on the dev tools and manual testing. That's how we did it when we worked with SMACC1 4 years ago.

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

2 participants