Skip to content

Add test for satellite assembly generation. - #146

Merged
Sridhar-MS merged 1 commit into
masterfrom
satellite-assemblies
Sep 30, 2016
Merged

Sridhar-MS merged 1 commit into
masterfrom
satellite-assemblies

Conversation

@Sridhar-MS

Copy link
Copy Markdown
Contributor

Reuse the 'KitchenSink' test asset to verify satelliet assembly generation.

cc @eerhardt @livarcocc

cultureDir.Should().HaveFile("TestApp.resources.dll");
}

commandResult.Should().HaveStdOutContaining(val);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since both the "TestApp" resources and the "TestLibrary" resources have the same strings, we aren't really doing great verification here.

Can we have the resources in the TestApp be different than what is in the TestLibrary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@Sridhar-MS
Sridhar-MS force-pushed the satellite-assemblies branch 2 times, most recently from b32443d to bbb366f Compare September 19, 2016 20:57
@Sridhar-MS

Sridhar-MS commented Sep 19, 2016 •

Copy link
Copy Markdown
Contributor Author

@eerhardt Added a test for publish scenario.

{
var cultureDir = new DirectoryInfo(Path.Combine(publishDirectory.FullName, culture));
cultureDir.Should().Exist();
cultureDir.Should().HaveFile("TestApp.resources.dll");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should also be a TestLibrary.resources.dll. Can you add a check for that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this test helped me find an issue on Unix. Here is the fix for it in msbuild - dotnet/msbuild#1057

Thanks @eerhardt

"CopyToOutputFromProjectReference.txt",
});

var cultures = new List<string>() { "da", "de", "fr" };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should put that in a separate test. Otherwise this test will hold everything in it. Seems like bad practice.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing publish test already covers a number of scenarios, I want to leverage that for satellite assemblies too. I did not want to create another test which runs the publish commands on the same project. That will increase a our test times.

<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>

<EmbeddedResource Include="**\*.resx" Exclude="Resource1.resx"/>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Directly above this we have Include="Resource1.resx". Do we need both?

@nguerrera

Copy link
Copy Markdown
Contributor

@Sridhar-MS Is the xplat issue with satellites still being investigated? Is there a bug tracking it?

@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

@dotnet-bot test this please

@Sridhar-MS
Sridhar-MS force-pushed the satellite-assemblies branch 2 times, most recently from ac2df18 to ec8b01b Compare September 30, 2016 15:57
Reuse the 'KitchenSink' test asset to verify satellite assembly generation.
@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

@dotnet-bot test Windows_NT Release please

1 similar comment
@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

@dotnet-bot test Windows_NT Release please

@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

@mmitche There is a file in this Jenkins VM which is not getting deleted when cleaning up the workspace. Any idea?

@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

I am going to merge since the build passed on Windows_NT debug.

@Sridhar-MS
Sridhar-MS merged commit c27c304 into master Sep 30, 2016
@mmitche

mmitche commented Sep 30, 2016

Copy link
Copy Markdown
Member

@Sridhar-MS Looking into it. Should be stuff allowed to stick around

@eerhardt
eerhardt deleted the satellite-assemblies branch September 30, 2016 23:01
nguerrera pushed a commit that referenced this pull request Oct 10, 2016
Add test for satellite assembly generation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants