Testing application first use experience

When working on an application it’s not uncommon to be testing with your own configuration and data, and often more in a power-user setup of that application. While that has advantages it’s easy to lose sight of how the application looks and behaves when first opened in a clean environment.


This is a companion discussion topic for the original entry at https://www.volkerkrause.eu/2024/11/16/kde-test-first-use-experience.html
3 Likes

@vkrause, I presume that that’s meant to be XDG_CONFIG_HOME?

A little disappointing that this isn’t syntax highlighted, despite it being so at its origin, considering Markdown makes it fairly easy:

```py
import os
import subprocess
import sys
import tempfile
xdgHome = tempfile.TemporaryDirectory(prefix='testing-')
for d in ['CACHE', 'CONFIG', 'DATA', 'STATE']:
    os.mkdir(os.path.join(xdgHome.name, d))
    os.environ[f"XDG_{d}_HOME"] = os.path.join(xdgHome.name, d)
os.environ['AKONADI_INSTANCE'] = 'testing'
subprocess.call(sys.argv[1:])
subprocess.call(['akonadictl', '--instance', 'testing', 'stop', '--wait'])
xdgHome.cleanup()
```

I don’t appear to be able to force it either, so I presume it’s a deficiency of this Discourse instance’s rendering plugin or configuration choices, rather than the cross-poster omitting it?

Filed 496339 – Expand the amount of languages that are syntax-highlighted..

Fixed the XDG_CONFIG_HOME typo, thanks!

1 Like

Hi, the blog post seems to point to Selenium - KDE Community Wiki (and it seems this has been updated since), but we’re trying to move away from the wikis and to Writing tests | Developer.

Fixed. But then we probably should have the wiki indicate that as well?

1 Like