Hi,
Sorry for the very noob questions. I have built an automation suite that runs on a docker container. If there is a failure in the suite, then an exit code of 1 is returned. This in turn ends the process. What this means is my chained npm command is not run. This command generates a html report.
FROM ubuntu:20.04
WORKDIR /testing
ARG portal
ENV cypress_portal=$portal
ARG protection
ENV cypress_protection=$protection
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
libgtk2.0-0 \
libgtk-3-0 \
libgbm-dev \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
libxtst6 \
xauth \
xvfb \
curl \
gnupg
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get -y install nodejs
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
RUN rm google-chrome-stable_current_amd64.deb
COPY . .
RUN npm install
CMD npm run cypress:run && npm run report:generate
npm run cypress:run. → Runs and 1/100 test fail.
Throws exit code (1)
is there any way on an exit code 1, that i can get the npm report:generate to run?
Any help is really appreciated.
Thanks