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

Write more unit tests & add code coverage tests #1567

Open
ghutchis opened this issue Jan 3, 2024 · 9 comments
Open

Write more unit tests & add code coverage tests #1567

ghutchis opened this issue Jan 3, 2024 · 9 comments

Comments

@ghutchis
Copy link
Member

ghutchis commented Jan 3, 2024

Handling the GUI for testing is tricky, but as seen in #1564 there are issues in the core and io modules that need more unit testing.

Since there are tools to help generate tests for methods, it would be great to expand the unit tests and improve coverage.

I'm marking this as a good first issue, since the test framework is already set up and there are many unit tests already.

@ghutchis
Copy link
Member Author

ghutchis commented Jan 3, 2024

If someone has ideas for automating GUI tests with Qt, please add some comments!

@chinmay7016
Copy link

We can use Squish

@ghutchis
Copy link
Member Author

ghutchis commented Jan 5, 2024

@chinmay7016 - Squish is a commercial product - last I checked it was US$7,000 per year.

@ayush2804
Copy link

What can I refer to understand the testing framework so that I can write more unit test?

@SharanRP
Copy link

SharanRP commented Jan 6, 2024

Selenium??

@Himanshuu23
Copy link

If someone has ideas for automating GUI tests with Qt, please add some comments!

Hi Sir! I researched a bit for some softwares based upon what companies are currently using and cost as well, we can use any one out of Playwright or Katalon Studio. As both are open are source but as it is testing at an advanced level we might have to purchase for some addition features. Both are really good and well-known but KATALON IS CHEAPER, so i would suggest using that more. But i suggested Playwright as well because it sometimes depends which testing software is more compatible with our device which reduces hassle after implementation. So, i gave an alternative for Katalon Studios as well.

@ghutchis
Copy link
Member Author

We're not going to rely on a commercial product for testing. It needs to be deployable at scale.

@perminder-17
Copy link

We're not going to rely on a commercial product for testing. It needs to be deployable at scale.

Expanding unit test coverage is crucial, and I'm considering tackling this task once the blur feature is added. Are there any plans to incorporate visual testing in the future?

@ghutchis
Copy link
Member Author

We actually already have several visual tests through ctest. There's an old blog about it here: https://www.kitware.com/using-vtks-image-regression-tests-in-avogadro-2/

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

No branches or pull requests

6 participants