import sys
import pytest

if __name__ == '__main__':
    sys.exit(pytest.main())

import sys
import pytest

if __name__ == '__main__':
    # show output results from every test function
    args = ['-v']
    # show the message output for skipped and expected failure tests
    args.append('-rxs')
    # compute coverage stats for bluesky
    args.extend(['--cov', 'bluesky'])
    # call pytest and exit with the return code from pytest so that
    # travis will fail correctly if tests fail
    sys.exit(pytest.main(args))

Clarify py.test arguments in run_test.py
TST: Clarify py.test arguments in run_test.py

  import sys
  import pytest
  
  if __name__ == '__main__':
+     # show output results from every test function
+     args = ['-v']
+     # show the message output for skipped and expected failure tests
+     args.append('-rxs')
+     # compute coverage stats for bluesky
+     args.extend(['--cov', 'bluesky'])
+     # call pytest and exit with the return code from pytest so that
+     # travis will fail correctly if tests fail
-     sys.exit(pytest.main())
+     sys.exit(pytest.main(args))
  
Clarify py.test arguments in run_test.py
## Code Before:
import sys
import pytest

if __name__ == '__main__':
    sys.exit(pytest.main())

## Instruction:
Clarify py.test arguments in run_test.py
## Code After:
import sys
import pytest

if __name__ == '__main__':
    # show output results from every test function
    args = ['-v']
    # show the message output for skipped and expected failure tests
    args.append('-rxs')
    # compute coverage stats for bluesky
    args.extend(['--cov', 'bluesky'])
    # call pytest and exit with the return code from pytest so that
    # travis will fail correctly if tests fail
    sys.exit(pytest.main(args))
