Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-wrap: Built wraps do not include scoped descriptor files #195

Open
dirv opened this issue May 23, 2011 · 1 comment
Open

build-wrap: Built wraps do not include scoped descriptor files #195

dirv opened this issue May 23, 2011 · 1 comment

Comments

@dirv
Copy link
Contributor

dirv commented May 23, 2011

If i call o build-wrap, the resulting wrap does not include my .tests.wrapdesc file, only the non-scoped descriptor.

@vokhotnikov
Copy link
Contributor

Well, as I'm looking at this one, I'm a bit stuck with writing the test

        public with_scoped_descriptors()
        {
            given_current_directory_repository(new CurrentDirectoryRepository());

            Environment.Descriptor.Name = "package";
            Environment.Descriptor.Version = "1.0.0".ToVersion();
            Environment.Descriptor.Build.Add("files; file=bin-net35->test.txt");

            given_file("test.txt", new MemoryStream(new byte[] { 0x0 }));

            Environment.GetOrCreateScopedDescriptor("tests");
            Environment.GetOrCreateScopedDescriptor("other");

            when_executing_command("");
        }

        [Test]
        public void should_include_scoped_descriptors()
        {
            var packageInfo = Environment.CurrentDirectoryRepository.PackagesByName["package"].First();
            var content = packageInfo.Load().Content;

            ... and now what is the way to reach for scoped descriptors?
        }

The original descriptor does not manifest itself as a file in content, so should the scoped descriptors do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants