     exit = (code) ->
       atomPythonTestView = AtomPythonTest.atomPythonTestView
 
+    command = 'python'
+    args = ['-m', 'pytest', filePath, '-s']
     process = new BufferedProcess({command, args, stdout, exit})
+
 
   runTestUnderCursor: ->
     editor = atom.workspace.getActiveTextEditor()


    if testName
      filePath = filePath + '::' + testName
      args = [filePath, '-s']
      @executePyTest(args)

  runAllTests: ->
    editor = atom.workspace.getActivePaneItem()
    file = editor?.buffer.file
    filePath = file?.path
    args = ['-s', filePath]
    @executePyTest(args)

  atomPythonTestView: null
  modalPanel: null
  subscriptions: null

  activate: (state) ->

