Sha256: e81d58a704024160cb1b6d0bcf5f951dbc604d0eb93bb3c40c8808d28277bf45
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
module Physique class TestConfig self.extend Albacore::ConfigDSL # Path to test runner executable attr_path :exe # Path to test runner executable attr_writer :files def opts Map.new({ exe: @exe, files: @files }) end end class TestsTasksBuilder < TasksBuilder def build_tasks add_test_tasks end def add_test_tasks configuration = solution.compile.configuration package_dir = solution.nuget.restore_location task = test_runner_task :test => test_dependencies 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') tests.parameters.add('/exclude=PersistenceTest') end task.add_description 'Run unit tests' end def test_dependencies dependencies = [ :compile ] dependencies << 'db:rebuild' unless solution.migrator.nil? dependencies end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
physique-0.2.2 | lib/physique/task_builders/test.rb |