'How to use --spec flag in env when using cypress

I can start my cypress tests using:

docker run -it --env-file=.env -v $PWD:/e2e -w /e2e/cypress cypress/included:9.6.0 --spec cypress/integration/test/**/*-spec.js

Where --spec is variable which test should be runned.

Is there any way how to use --spec in my .env file? I didnt find any list of cypress env commands.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source