-
Notifications
You must be signed in to change notification settings - Fork 906
/
run.feature
70 lines (59 loc) · 3.22 KB
/
run.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Feature: Run Project
Scenario: Run default python entry point with example code
Local environment should be used by default when no env option is specified.
Given I have prepared a config file
And I have run a non-interactive kedro new with starter "default"
When I execute the kedro command "run"
Then I should get a successful exit code
And the logs should show that 4 nodes were run
Scenario: Run parallel runner with default python entry point with example code
Given I have prepared a config file
And I have run a non-interactive kedro new with starter "default"
When I execute the kedro command "run --runner=ParallelRunner"
Then I should get a successful exit code
And the logs should show that "split_data" was run
And the logs should show that "train_model" was run
And the logs should show that "predict" was run
And the logs should show that "report_accuracy" was run
Scenario: Run default python entry point without example code
Given I have prepared a config file without starter
And I have run a non-interactive kedro new without starter
When I execute the kedro command "run"
Then I should get an error exit code
And I should get an error message including "Pipeline contains no nodes"
Scenario: Run kedro run with config file
Given I have prepared a config file
And I have run a non-interactive kedro new with starter "default"
And I have prepared a run_config file with config options
When I execute the kedro command "run --config run_config.yml"
Then I should get a successful exit code
And the logs should show that 1 nodes were run
Scenario: Run kedro run with config from archive and OmegaConfigLoader
Given I have prepared a config file
And I have run a non-interactive kedro new with starter "default"
And I have set the OmegaConfigLoader in settings
When I execute the kedro command "package"
Then I should get a successful exit code
When I execute the kedro command "run --conf-source dist/conf-project_dummy.tar.gz"
Then I should get a successful exit code
And the logs should show that 4 nodes were run
Scenario: Run kedro run with config file and override option
Given I have prepared a config file
And I have run a non-interactive kedro new with starter "default"
And I have prepared a run_config file with config options
When I execute the kedro command "run --config run_config.yml --pipeline __default__"
Then I should get a successful exit code
And the logs should show that 4 nodes were run
Scenario: Run kedro run with extra parameters
Given I have prepared a config file
And I have run a non-interactive kedro new with starter "default"
When I execute the kedro command "run --params extra1=1,extra2=value2"
Then I should get a successful exit code
And the logs should show that 4 nodes were run
Scenario: Run kedro run from within a sub-directory
Given I have prepared a config file
And I have run a non-interactive kedro new with starter "default"
And I have changed the current working directory to "data"
When I execute the kedro command "run"
Then I should get a successful exit code
And the logs should show that 4 nodes were run