Localized Unit Test

Hi,

I have a Unit test assembly that contains a test form that is localized. A satellite assembly is built for the unit test which is all fine and well. However, when I run the unit test, the test framework copies the unit test assembly into another directory .....\TestResults\.....\Out\test.dll but the satellite assemblies are *not* copied (causing my unit test to fail). This seems like a bug

Andrew



Answer this question

Localized Unit Test

  • SunsOfFun

    If I just add the satellite assembly as a file, it goes into the same directory as the test assembly which is not what is wanted. I tried adding the directory that contains the satellite assembly but that didnt seem to do anything

    Andrew


  • ringfinger

    Great feedback - bumping this into the Team Test forum and emailed them to get a design bug logged.

    Thanks,

    Eric Jarvi
    http://blogs.msdn.com/ejarvi


  • DaveCat

    Hello
    Please take a look at the following MSDN topics to see if it answers your questions.

    Test Deployment Overview
    http://msdn2.microsoft.com/en-us/library/ms182474.aspx


    How to: Configure Test Deployment
    http://msdn2.microsoft.com/en-us/library/ms182475.aspx

    Thanks
    Brian [MSFT]
    Microsoft Developer Support
    This posting is provided "AS IS" with no warranties, and confers no rights.


  • Harry Vijayakumar

    Hello
    Have you tried adding the satellite assembly to the deployment section in your testrunconfig You can do this from the Test menu

    Test->Edit Test Run Configurations

    In the dialog select Deployment and add your satellite assemblies.

    Thanks
    Brian [MSFT]
    Microsoft Developer Support
    This posting is provided "AS IS" with no warranties, and confers no rights.


  • jb6494

    FYI,

    I worked around this problem by deploying the satellite assembly as a file and then modifying my unit test to create the appropriate subdirectory and move the satellite assembly there. Admittedly its a little unusual for a unit test to be localized but my test tests some aspects of localization. I still maintain this is a bug - satellite assemblies of unit tests should be automatically deployed.

    (This workaround won't work if I have more than 1 satellite assembly though since they will all have the same name)

    Andrew


  • Localized Unit Test