lib/physique/task_builders/test.rb in physique-0.3.0 vs lib/physique/task_builders/test.rb in physique-0.3.1

- old
+ new

@@ -23,21 +23,15 @@ def add_test_tasks configuration = solution.compile.configuration package_dir = solution.nuget.restore_location - task = test_runner :test => test_dependencies do |tests| + desc 'Run unit tests' + test_runner :test => :compile do |tests| tests.files = FileList["**/*.Tests/bin/#{configuration}/*.Tests.dll"] tests.exe = locate_tool("#{package_dir}/NUnit.Runners.*/tools/nunit-console.exe") tests.parameters.add('/labels') tests.parameters.add('/trace=Verbose') end - task.add_description 'Run unit tests' - end - - def test_dependencies - dependencies = [ :compile ] - dependencies << 'db:rebuild' unless solution.migrator.nil? - dependencies end end end \ No newline at end of file