Skip to content

Commit

Permalink
blog: add "QOwnNotes UI End2End Tests with the help of NixOS" article
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Jun 17, 2023
1 parent f08f7aa commit 4e5b947
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: QOwnNotes UI End2End Tests with the help of NixOS
description: There are now basic End2End tests for QOwnNotes with the help of the NixOS Test System.
image: /assets/img/end2end-test.png
date: 2023-06-17
order: 20230617000000
---

# QOwnNotes UI End2End Tests with the help of NixOS

<BlogDate v-bind:fm="$frontmatter" />

There are now basic End2End tests for QOwnNotes with the help of the [NixOS](https://nixos.org/) Test System.

The tests will be run automatically when the QOwnNotes packages is updated in the [Nix Store](https://search.nixos.org/).

You can look or contribute to the tests at [qownnotes.nix](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/qownnotes.nix).

With the [nixpkgs repository](https://github.com/NixOS/nixpkgs/) checked out you can run
the tests easily isolated in a QEMO VM with the help of [nix](https://nixos.org):

```bash
nix-build . -A nixosTests.qownnotes
```

Text is read via OCR from the screen and tested for validity.

![end2end-test](./media/end2end-test.png)

Binary file added webpage/src/blog/media/end2end-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4e5b947

Please sign in to comment.