br-automation-com / BnR-DevOps-Package

Contains materials for implementing DevOps practices for Automation Studio project development.
22 stars 1 forks source link

Unittest not working in Docker #12

Closed JobFranken closed 3 weeks ago

JobFranken commented 3 weeks ago

Originally posted by @Zoornwork in https://github.com/br-automation-com/BnR-DevOps-Package/issues/1#issuecomment-2441995783

We're attempting to use a Docker container to build and test our projects/libraries. We've successfully built the example project provided in the Unit Test Guide using the container.

This process is performed once on a host machine (with a GUI) and once within a Docker container, both of which have the same AS/Upgrade/Runtimes installed:

While the example project builds successfully in both environments, we encounter an error when attempting to build a different project that includes the mappFramework within the container:

Error: "The system cannot find the path specified."

differenceContainer

The build completes successfully on the host, but fails in the container. The screenshot illustrates the successful build on the left and the failed container build in Docker Desktop.

The error message is vague, and we’re not sure how to proceed.

Has anyone encountered a similar issue or have any ideas on how to resolve this?

Thank you!

Originally posted by @Zoornwork in https://github.com/br-automation-com/BnR-DevOps-Package/issues/1#issuecomment-2441995783

JobFranken commented 3 weeks ago

@zoornwork Did you install the UnitTest upgrade in the docker env ?

Zoornwork commented 3 weeks ago

@JobFranken That was exactly the issue. Sometimes the solution can be so simple. Thanks a lot for your help. The build completed successfully, though with 55 errors – but at least we can move forward now.

Thanks again, and apologies for not creating a new issue.

JobFranken commented 3 weeks ago

No problem, glad that the issue is solved.