No app.config is picked up while

Yakov Gnusin's Avatar

Yakov Gnusin

21 Jul, 2015 03:37 AM

Dear AppVeyor Team.
We are experiencing some difficulties building our project: https://ci.appveyor.com/project/alexed1/dockyard/build/1.0.115/tests

All tests that require app.config - fail. Looks like app.config file is not picked by the test running service. All test run on local machine though.

Can you help?

  1. Support Staff 1 Posted by Feodor Fitsner on 21 Jul, 2015 03:43 AM

    Feodor Fitsner's Avatar

    Hi Yakov,

    What testing framework do you use?

  2. 2 Posted by Yakov Gnusin on 21 Jul, 2015 03:44 AM

    Yakov Gnusin's Avatar

    Hi Feodor, we use NUnit.

  3. Support Staff 3 Posted by Feodor Fitsner on 21 Jul, 2015 03:50 AM

    Feodor Fitsner's Avatar

    I remember testing that some time ago and it worked. Look at this very simple test project using NUnit: https://github.com/FeodorFitsner/nunit-config-test

    This is app.config: https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUni...
    ...and this is the test reading values from config: https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUni...

    Build results in AppVeyor: https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/bui...

    The main point you should pay attention to is app.config being copied to the output directory with <test_assembly>.dll.config name. Look at line #27 here: https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/bui...

    Hope that helps.

  4. 4 Posted by Yakov Gnusin on 21 Jul, 2015 04:00 AM

    Yakov Gnusin's Avatar

    does it make any difference if config file in project is named "app.config" or "App.config" ?

  5. Support Staff 5 Posted by Feodor Fitsner on 21 Jul, 2015 04:10 AM

    Feodor Fitsner's Avatar

    I don't think so. Make sure *.dll.config appears in output directory by adding dir command to after_build.

  6. 6 Posted by Yakov Gnusin on 21 Jul, 2015 05:01 AM

    Yakov Gnusin's Avatar

    Feodor, we have tried that, config file exists.

    We're trying to display it's contents, however "rebuild commit" command no longer runs, error message says "Build version 1.0.121 already exists."

    Can you help?

  7. 7 Posted by Yakov Gnusin on 21 Jul, 2015 05:04 AM

    Yakov Gnusin's Avatar

    Okay we got this fixed by incrementing build version.

  8. Support Staff 8 Posted by Feodor Fitsner on 21 Jul, 2015 05:08 AM

    Feodor Fitsner's Avatar

    Can you add me ([email blocked]) to collaborators (https://ci.appveyor.com/team), so I can see build results?

  9. 9 Posted by Yakov Gnusin on 21 Jul, 2015 05:21 AM

    Yakov Gnusin's Avatar

    Feodor, we found an issue. It has to do with project dependencies between tests. We will reorganize dependencies between test projects that should help. Thank you for your support.

  10. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac