Sha256: ce386c889de2291d5a718f1f8395043a69fe344c68804174dbd5388a6c83dc3e

Contents?: true

Size: 730 Bytes

Versions: 2

Compression:

Stored size: 730 Bytes

Contents

require "spec_helper"

describe MSTest do
  subject(:task) do
    task = MSTest.new()
    task.extend(SystemPatch)
    task.command = "mstest"
    task.assemblies = ["a.dll", "b.dll"]
    task.tests = ["foo", "bar"]
    task.no_logo
    task
  end

  let(:cmd) { task.system_command }

  before :each do
    task.execute
  end

  it "should use the command" do
    cmd.should include("mstest")
  end

  it "should hide the startup banner" do
    cmd.should include("/nologo")
  end

  it "should test the assemblies" do
    cmd.should include("/testcontainer:\"a.dll\" /testcontainer:\"b.dll\"")
  end

  it "should run only the tests" do
    cmd.should include("/test:foo /test:bar")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 spec/mstest_spec.rb
albacore-1.0.0.rc.3 spec/mstest_spec.rb