The xPack solution to the challenge #14
ilg-ul
started this conversation in
The xPack challenge
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The xPack solution for executing multi-platform tests entails using various build configurations, each customised for a specific environment. These configurations incorporate their own dependencies, which may include different toolchains or even different versions of the same toolchain.
With such configurations defined, invoking the tests becomes straightforward.
Let's consider the @micro-os-plus/utils-lists project (a real life, fully functional project).
After satisfying the prerequisites (basically Node.js), the sequence of commands to run all tests is as follows:
That's all!
These five commands will compile and execute the unit tests:
The tests are compiled using multiple toolchains:
In total, there are over 160 variants of the same tests, executed by these commands!
Moreover, the aforementioned five commands can be used identically on Windows, macOS (x64/arm64), and GNU/Linux (x64/arm64).
Quite impressive, isn't it? Can you outdo that?
Beta Was this translation helpful? Give feedback.
All reactions