SwitchThemeInjector/Tests
dependabot[bot] 757856d337
Bump Newtonsoft.Json in /Tests/SwitchThemesCommonTests (#117)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 22:42:45 +02:00
..
Cases Fixes for optional values in JSON loading, add test to optimize and load all built-in layouts 2020-10-25 13:08:09 +01:00
SwitchThemesCommonTests Bump Newtonsoft.Json in /Tests/SwitchThemesCommonTests (#117) 2022-06-22 22:42:45 +02:00
SwitchThemesNXTests 11.0 patch and layout fixes for the installer 2020-12-06 18:02:45 +01:00
readme.md Consistency tests between C++ and C# implementations 2020-10-02 21:44:17 +02:00

Tests

The most challenging part of the project is to make sure nothing breaks after changes in the code. This is quite hard as we treat qlaunch as a black-box that may or may not accept our edits to the system files. So most tests are about ensuring that the output is consistent with previous versions.

Unfortunately it means that we need original szs files to test this, i can't include them in the repo so for the time being you will have to obtain them by yourself.

My reference currently are files from 10.0 qlaunch. The ResidentMenu.szs file SHA256 starts with 199FA9B627EDF.

Put original files in Cases/Source and expected results in Cases/Expected.

Synthetic tests are files not actually from the home menu that can be used as a baseline for testing certain features, I plan to expand on them as using non-copyrighted files would mean having tests that can be automated with github actions or equivalent.