Skip to content

Instantly share code, notes, and snippets.

View oranja's full-sized avatar

Itzik Ephraim oranja

View GitHub Profile
@oranja
oranja / qtcreator_autotests.md
Last active July 15, 2017 08:13
Run and monitor AutoTests in QtCreator (QTestLib)

The Qt framework offers Qt Test / QTestLib as a simple unit-testing framework for Qt-based projects. Perhaps too simple, as it comes with an annoying limitation that requires a separate executable for each test class, or creating a single test runner with a manually added call to each test suite. A quick search shows easy and helpful workarounds that offer to replace the manual work with a short #include and a macro. Then the test-runner remains untouched and finds all your test suites with these hints alone.

1]: http://qtcreator.blogspot.co.il/2009/10/running-multiple-unit-tests.html

2]: https://marcoarena.wordpress.com/2012/06/23/increase-your-qtest-productivity/

3]: https://github.com/e-j/qt-multiple-tests

In version 4.0 of QtCreator, the AutoTest plugin is made available to all, through the Community Edition of QtCreator. It offers a decent “Test Results” output pane that allows you to run and monitor th

@oranja
oranja / keybase.md
Last active August 14, 2016 10:18
Keybase.io github proof

Keybase proof

I hereby claim:

  • I am oranja on github.
  • I am oranja (https://keybase.io/oranja) on keybase.
  • I have a public key whose fingerprint is 1BDC 9A20 34BA 69A5 7C10 1A9A 6664 CFD3 2186 156C

To claim this, I am signing this object: