Report test results to CDash
Share
Go to the CDash folder you downloaded in the CppRestApi preferences.
Run the command to start the docker container.
cd /path_to/cpprestapi/ThirdParty/CDash
Docker compose -f docker/docker-compose.yml \
-f docker/docker-compose.dev.yml \
-f docker/docker-compose.postgres.yml \
--env-file .env.dev up -d
Docker exec --user www-data cdash bash -c "php artisan user:save --email=email --password=password --firstname=admin --lastname=admin --institution=cpprestapi --admin=1"
The official documentation ( https://github.com/Kitware/CDash/blob/master/docs/docker.md ) uses mysql, but since I already created a mysql container with CppRestApi, I will change it to postgres.
It may be useful to save the script so that it can be reused.
Access http://localhost:8080 and create a project.
For login information, enter your email address and password.
After logging in, go to the create project page from my cdash at the top of the page. Enter CppRestApi in name to create a new project.
Start the cpprestapi container.
cd /path_to/cpprestapi
docker compose up
Enter the container.
docker exec -it container name bash
Run the test and submit to cdash.
cd /CppRestApi
ctest -S CTestJob.cmake
Once the test is complete, check CDash. If the test results are displayed as shown below, it is successful.