Frederik Gladhorn

Fixing a flaky test – how hard can it be?

Published Friday May 12th, 2017 | 2 Comments on Fixing a flaky test – how hard can it be?
Posted in C++, Debugging, Dev Loop, Qt, Random, Test | Tags: , , , , ,

Flaky tests are a pain point for any reasonable continuous integration system. And by flaky I refer to tests that sometimes pass and sometimes fail. Lately I’ve been bothered by a lack of data and metrics when it comes to discussions around the topic of flaky tests (it pops up regularly on the Qt development […]

Read More

Making auto-testing easier

Published Friday October 29th, 2010 | 18 Comments on Making auto-testing easier
Posted in Contributors, Qt, Test

If you are a contributor to Qt, you should know by now that your patches must not cause any regressions.  The auto-tests in Qt (located in <QTDIR>/tests/auto) are there to ensure that. These tests are run automatically by the Qt Continuous Integration System before merging a staging branch into the mainline. As a contributor, before […]

Read More

Compiling Qt with Clang

Published Friday October 29th, 2010 | 14 Comments on Compiling Qt with Clang
Posted in C++, Performance, Qt, Test

I’m happy to report that as of Qt revision 15f52e00 and Clang revision 116737 you’re now able to a complete build of Qt with Clang on both Linux and Mac, including support for precompiled headers. You’ll find the makespecs in Qt’s master branch: unsupported/macx-clang unsupported/linux-clang The mkspec are currently unsupported, but we’ve started running a few […]

Read More
Paul Olav Tvete

Please welcome qtintegration, the newest member of the team

Published Friday December 18th, 2009 | 9 Comments on Please welcome qtintegration, the newest member of the team
Posted in Git, Qt, Test

Some of you may have noticed a new committer to the Qt git repository. Someone who is tirelessly working night and day, but only seems to make merge commits. I am of course talking about Qt Continuous Integration System, who in addition to never getting any time off, never gets paid either. This is because […]

Read More

Analyzing benchmark results with BM

Published Thursday November 5th, 2009 | 8 Comments on Analyzing benchmark results with BM
Posted in Performance, Test

Benchmarking is an important concept for evaluating the performance of computer systems. It can be considered essentially a three-step process: Step 1 Define the benchmarks. Step 2 Execute the benchmarks and produce numbers. Step 3 Analyze the benchmark numbers. Each step has its own challenges: Step 1 is about writing programs that test sufficiently interesting/relevant parts […]

Read More

Iterating efficiently

Published Friday January 23rd, 2009 | 4 Comments on Iterating efficiently
Posted in Test

Qt provides a whole lot of ways to iterate over a QList: You can use STL like iterators, Java like iterators, use the foreach macro or access the list elements via their index. Personally I fell in love with foreach from the first day, but it was not long that somebody remarked “foreach is slow” […]

Read More

QTestLib, now with nice graphs pointing upwards

Published Friday December 5th, 2008 | 3 Comments on QTestLib, now with nice graphs pointing upwards
Posted in Aggregated, Qt, Test

One of the focus areas for 4.5 is performance. To that end, we decided to add a couple of benchmarking extentions to our beloved QTestLib. There is exactly one new API, the QBENCHMARK macro: QString str1 = “foo”; QString str2 = “foo”; QBENCHMARK { str1.localeAwareCompare(str2); } (Full example is available at $QTDIR/examples/qtestlib/tutorial5.) Under the hood, […]

Read More
Get started today with Qt Download now