import sys
import pubrunner
import pubrunner.command_line

def test_countwords():
	#pubrunner.pubrun('examples/CountWords/',True,True)
	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/CountWords/']
	pubrunner.command_line.main()

def test_textminingcounter():
	#pubrunner.pubrun('examples/CountWords/',True,True)
	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/TextMiningCounter/']
	pubrunner.command_line.main()

import sys
import pubrunner
import pubrunner.command_line

def test_countwords():
	parentDir = os.path.dirname(os.path.abspath(__file__))
	projectPath = os.path.join(parentDir,'examples','CountWords')
	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
	pubrunner.command_line.main()

def test_textminingcounter():
	parentDir = os.path.dirname(os.path.abspath(__file__))
	projectPath = os.path.join(parentDir,'examples','TextMiningCount')
	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
	pubrunner.command_line.main()


Use absolute path for running tests
Use absolute path for running tests

  import sys
  import pubrunner
  import pubrunner.command_line
  
  def test_countwords():
- 	#pubrunner.pubrun('examples/CountWords/',True,True)
+ 	parentDir = os.path.dirname(os.path.abspath(__file__))
+ 	projectPath = os.path.join(parentDir,'examples','CountWords')
- 	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/CountWords/']
+ 	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
  	pubrunner.command_line.main()
  
  def test_textminingcounter():
- 	#pubrunner.pubrun('examples/CountWords/',True,True)
+ 	parentDir = os.path.dirname(os.path.abspath(__file__))
+ 	projectPath = os.path.join(parentDir,'examples','TextMiningCount')
- 	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/TextMiningCounter/']
+ 	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
  	pubrunner.command_line.main()
  
+ 
Use absolute path for running tests
## Code Before:
import sys
import pubrunner
import pubrunner.command_line

def test_countwords():
	#pubrunner.pubrun('examples/CountWords/',True,True)
	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/CountWords/']
	pubrunner.command_line.main()

def test_textminingcounter():
	#pubrunner.pubrun('examples/CountWords/',True,True)
	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/TextMiningCounter/']
	pubrunner.command_line.main()

## Instruction:
Use absolute path for running tests
## Code After:
import sys
import pubrunner
import pubrunner.command_line

def test_countwords():
	parentDir = os.path.dirname(os.path.abspath(__file__))
	projectPath = os.path.join(parentDir,'examples','CountWords')
	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
	pubrunner.command_line.main()

def test_textminingcounter():
	parentDir = os.path.dirname(os.path.abspath(__file__))
	projectPath = os.path.join(parentDir,'examples','TextMiningCount')
	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
	pubrunner.command_line.main()

