micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
|
The project uses Git and is hosted on GitHub as https://github.com/micro-os-plus/micro-test-plus-xpack.git.
To clone the stable branch (xpack
), run the following commands in a terminal (on Windows use the Git Bash console):
For development purposes, clone the development branch (xpack-development
):
Or, if the repo was already cloned:
To link it to the central xPack store:
The project has a dependency to a common helper; clone the xpack-development
branch and link it to the central xPacks store:
Or, if the repo was already cloned:
A recent xpm, which is a portable Node.js command line application.
To run the native tests, a C++ development environment is required. On macOS install Command Line Tools, on Ubuntu build-essential
.
Code formatting is done using clang-format --style=file
, either manually from a script, or automatically from Visual Studio Code, or the Eclipse CppStyle plug-in.
The project website is automatically generated and published by the publish-github-pages.yml
workflow on Git push. The GitHub Action that runs the workflow is https://github.com/micro-os-plus/micro-test-plus-xpack/actions/workflows/publish-github-pages.yml.
xpack
branch.For development, there are two xPack actions that can be used to automate the workflow:
doxygen
- to build the site with Doxygen locallybrowser
- to start the default browser with the website/html
folderThere are no fixed releases.
In the micro-os-plus/micro-test-plus-xpack
Git repo:
xpack-development
branchxpack
branchNo need to add a tag here, it'll be added when the release is created.
Determine the upstream version (like 3.2.0
) and eventually update the package.json
file; the format is 3.2.0-pre
.
Check GitHub issues and pull requests:
and fix them; assign them to a milestone (like 3.2.0
, without v).
Update the maintainer.md
file to reflect the changes related to the new version.
Update the PROJECT_NUMBER
variable to the new version.
CHANGELOG.md
file* v3.2.0
prepare v3.2.0
There are predefined actions to manually run various tests on the local development machine.
Start by doing some cleanups (not necessary after initial git clone
):
Run the tests with the system compiler:
Run a selection of tests with the latest versions of toolchains:
Run all tests with the latest versions of toolchains:
Run all tests with all toolchain versions:
xpack-development
branchnpm pack
and check the content of the archive, which should list only package.json
, README.md
, LICENSE
, CHANGELOG.md
, the sources and CMake/meson files; possibly adjust .npmignore
npm version patch
, npm version minor
, npm version major
xpack-development
branch to GitHubpostversion
npm script should also update tags via git push origin --tags
In addition, it is possible to manually trigger a test-all job, that runs all available builds, on all supported platforms, including Linux Arm and macOS Apple Silicon.
For this:
~/actions-runners/micro-os-plus/run.sh &
runner on xbbma
, xbbla64
and xbbla32
xpack-development
branch is pushedtrigger-workflow-test-all
actionnpm publish --tag next
(use npm publish --access public
when publishing for the first time)The version is visible at:
When the package is considered stable:
xpack-development
into xpack
xpack-development
When the release is considered stable, promote it as latest
:
npm dist-tag ls @micro-os-plus/micro-test-plus
npm dist-tag add @micro-os-plus/micro-test-plus@3.2.0 latest
npm dist-tag ls @micro-os-plus/micro-test-plus
@micro_os_plus
account