carlsvard opened a new issue #11183:
URL: https://github.com/apache/airflow/issues/11183
**Apache Airflow version**: 1.10.12
**What happened**:
`$ airflow test [dag_id] [execution_date]`
gives
```
usage: airflow test [-h] [-sd SUBDIR] [-dr] [-tp TASK_PARAMS] [-pm]
dag_id task_id execution_date
positional arguments:
dag_id The id of the dag
task_id The id of the task
execution_date The execution date of the DAG
optional arguments:
-h, --help show this help message and exit
-sd SUBDIR, --subdir SUBDIR
File location or directory from which to look for the
dag. Defaults to '[AIRFLOW_HOME]/dags' where
[AIRFLOW_HOME] is the value you set for
'AIRFLOW_HOME'
config you set in 'airflow.cfg'
-dr, --dry_run Perform a dry run for each task. Only renders
Template
Fields for each task, nothing else
-tp TASK_PARAMS, --task_params TASK_PARAMS
Sends a JSON params dict to the task
-pm, --post_mortem Open debugger on uncaught exception
airflow test command error: the following arguments are required:
execution_date, see help above.
```
**What you expected to happen**:
That test should be run on DAG level, i.e., each task, in accordance to
documentation:
https://airflow.apache.org/docs/stable/tutorial.html#id2
**How to reproduce it**:
`$ airflow test [dag_id] [execution_date]`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]