simulator: test_qa: Add some simply QA tests for app screenshots
Add tests to make sure every app has a screenshot... and fix the problems picked up by the new tests! Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
a80c7dea17
commit
aab718f917
3 changed files with 38 additions and 9 deletions
27
README.rst
27
README.rst
|
@ -132,7 +132,7 @@ PineTime:
|
|||
:width: 233
|
||||
|
||||
Screenshots of the built in applications running on the wasp-os
|
||||
simulator (the "blank" screen is the torch application):
|
||||
simulator:
|
||||
|
||||
.. image:: res/Bootloader.png
|
||||
:alt: Bootloader splash screen overlaid on the simulator watch art
|
||||
|
@ -158,22 +158,27 @@ simulator (the "blank" screen is the torch application):
|
|||
:alt: Application launcher running on the wasp-os simulator
|
||||
:width: 179
|
||||
|
||||
.. image:: res/SelfTestApp.png
|
||||
:alt: Self test application running a rendering benchmark on the simulator
|
||||
:width: 179
|
||||
|
||||
.. image:: res/SettingsApp.png
|
||||
:alt: Settings application running on the wasp-os simulator
|
||||
:width: 179
|
||||
|
||||
.. image:: res/SoftwareApp.png
|
||||
:alt: Software selection app running on the wasp-os simulator
|
||||
:width: 179
|
||||
|
||||
|
||||
wasp-os also contains a library of additional applications for you to choose.
|
||||
These are disabled by default but can be easily enabled using the Software
|
||||
application (and the "blank" white screen is a torch application):
|
||||
|
||||
.. image:: res/SelfTestApp.png
|
||||
:alt: Self test application running a rendering benchmark on the simulator
|
||||
:width: 179
|
||||
|
||||
.. image:: res/TorchApp.png
|
||||
:alt: Torch application running on the wasp-os simulator
|
||||
:width: 179
|
||||
|
||||
wasp-os also contains a library of additional applications for you to choose.
|
||||
These are disabled by default but can be easily enabled by adding them
|
||||
using one of the techniques is the Application Writer's guide.
|
||||
|
||||
.. image:: res/ChronoApp.png
|
||||
:alt: Analogue clock application running in the wasp-os simulator
|
||||
:width: 179
|
||||
|
@ -190,6 +195,10 @@ using one of the techniques is the Application Writer's guide.
|
|||
:alt: Game of Life running in the wasp-os simulator
|
||||
:width: 179
|
||||
|
||||
.. image:: res/AlarmApp.png
|
||||
:alt: Alarm clock application running in the wasp-os simulator
|
||||
:width: 179
|
||||
|
||||
.. image:: res/MusicApp.png
|
||||
:alt: Music Player running in the wasp-os simulator
|
||||
:width: 179
|
||||
|
|
BIN
res/SoftwareApp.png
Normal file
BIN
res/SoftwareApp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
20
wasp/boards/simulator/test_qa.py
Normal file
20
wasp/boards/simulator/test_qa.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import pytest
|
||||
import wasp
|
||||
import os
|
||||
|
||||
EXCLUDE = ('Notifications', 'Template', 'Demo')
|
||||
|
||||
def test_screenshot(constructor):
|
||||
if constructor.NAME in EXCLUDE:
|
||||
return
|
||||
fname = f'res/{constructor.NAME}App.png'.replace(' ', '')
|
||||
assert os.path.exists(fname)
|
||||
|
||||
def test_screenshot_README(constructor):
|
||||
if constructor.NAME in EXCLUDE:
|
||||
return
|
||||
fname = f'res/{constructor.NAME}App.png'.replace(' ', '')
|
||||
|
||||
with open('README.rst') as f:
|
||||
readme = f.read()
|
||||
assert fname in readme
|
Loading…
Reference in a new issue