hundreds-breakfast-49010
08/19/2020, 8:18 PMaloof-angle-91616
08/19/2020, 8:18 PMhundreds-breakfast-49010
08/19/2020, 8:19 PMhundreds-breakfast-49010
08/19/2020, 8:19 PMaloof-angle-91616
08/19/2020, 8:20 PMhundreds-breakfast-49010
08/19/2020, 8:21 PMaloof-angle-91616
08/19/2020, 8:23 PMhundreds-breakfast-49010
08/19/2020, 8:26 PMaloof-angle-91616
08/19/2020, 8:26 PMaloof-angle-91616
08/19/2020, 8:27 PMwitty-crayon-22786
08/19/2020, 8:30 PMwitty-crayon-22786
08/19/2020, 8:31 PMhundreds-breakfast-49010
08/19/2020, 8:31 PMwitty-crayon-22786
08/19/2020, 8:43 PMwitty-crayon-22786
08/19/2020, 8:47 PMhundreds-breakfast-49010
08/19/2020, 8:58 PMaloof-angle-91616
08/19/2020, 9:01 PMaloof-angle-91616
08/19/2020, 9:01 PMhundreds-breakfast-49010
08/19/2020, 10:58 PMhundreds-father-404
08/21/2020, 1:13 AMenv
work for InteractiveProcess
? Is it not hermetic? I added support for running Bash scripts just now, and I’m surprised that echo $PATH
prints my actual PATH, rather than being stripped.hundreds-breakfast-49010
08/21/2020, 1:42 AMProcess
doeshundreds-father-404
08/21/2020, 1:42 AMhundreds-breakfast-49010
08/21/2020, 1:44 AMrun_local_interactive_process
in <http://interface.rs|interface.rs>
- it's using the rust std library command
API to spawn a subprocesshundreds-breakfast-49010
08/21/2020, 1:44 AMaloof-angle-91616
08/21/2020, 1:45 AMhundreds-breakfast-49010
08/21/2020, 1:46 AMCommand
in that functionhundreds-father-404
08/21/2020, 1:56 AMtest —debug
. If something passes with that, it should pass without, and vice versahappy-kitchen-89482
08/21/2020, 1:07 PMhundreds-father-404
08/24/2020, 2:45 AMTestBase
, tests can use Pytest style of top-level functions. The expectation would be for each test file to create a Pytest fixture that returns a RuleRunner
type, which wraps a SchedulerSession and exposes entry points like create_file
and request_product
.
Because it’s a fixture, you define it once, and then each individual test gets a new copy of the RuleRunner
, which preserves the test isolation we need.
If you want multiple distinct setups in your test file, you can create multiple fixtures. The test then says which fixture it wants to use.