eager-lamp-68986
02/03/2022, 3:19 PMdocker-compose
to create environments for running integration tests. We might want to move to using Kubernetes pods in future. In both cases we are running the tests from a container which should be created by the test framework. This is different from the way pants runs tests - they are executed in the same environment as pants.
Ideally I would like ./pants test ./test/my-integration-test.py
to do the following:
1. Set up a docker-compose test environment. The necessary data for it should be collected from the target.
2. Build the necessary pex files for the test
3. Copy the pex files to a container in the environment
4. Execute the test from the environment and collect the results
5. Tear-down the test envrionment
Do you think that something like this is possible to achieve? I'm open to writing plugins as long as I don't need to rewrite the whole pytest rule to get this thing to work.happy-kitchen-89482
02/03/2022, 3:27 PMhappy-kitchen-89482
02/03/2022, 3:27 PMeager-lamp-68986
02/03/2022, 3:44 PMeager-lamp-68986
02/03/2022, 3:48 PMtest.sh
which creates a test environment for each test which contains the whole repository in a container. Then it runs ./pants test ...
in the created environment. This works, but it is very slow.happy-kitchen-89482
02/03/2022, 5:39 PMhappy-kitchen-89482
02/03/2022, 5:39 PMhappy-kitchen-89482
02/03/2022, 5:40 PMeager-lamp-68986
02/03/2022, 5:41 PMcurved-television-6568
02/03/2022, 7:52 PMcurved-television-6568
02/03/2022, 7:55 PMhappy-kitchen-89482
02/03/2022, 9:45 PMhappy-kitchen-89482
02/03/2022, 9:46 PM./pants
inside the environment? Or is it important for each test to have a separate standalone environment?eager-lamp-68986
02/04/2022, 9:32 AMhappy-kitchen-89482
02/04/2022, 10:22 PMhappy-kitchen-89482
02/04/2022, 10:25 PMhappy-kitchen-89482
02/04/2022, 10:26 PMhappy-kitchen-89482
02/04/2022, 10:26 PMhappy-kitchen-89482
02/04/2022, 10:27 PMhappy-kitchen-89482
02/04/2022, 10:29 PMable-school-92027
12/21/2023, 2:03 PMlemon-eye-70471
04/25/2024, 6:31 PMable-school-92027
04/25/2024, 6:38 PMlemon-eye-70471
04/25/2024, 6:41 PMable-school-92027
04/25/2024, 6:45 PMdotnet test ...
command is executed inside the sandbox but outside any container.