Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7883933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:39:56+00:00 2026-06-03T04:39:56+00:00

I have system of: svn – control version cc.net – as ci server msbuild

  • 0

I have system of:

  • svn – control version
  • cc.net – as ci server
  • msbuild – as a build system
  • nunit – for launch test
  • webdriver – for web-testing.

Now my tests are run automatically after each commit. But i want that my test run if commit has comment #runautotest (or another).

I investigated triggers of cc.net but its are for another goals.
I try to found some information about cc.net parse logs but this was don’t has positive result.

What kind of ways i should use for resolve my issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:39:57+00:00Added an answer on June 3, 2026 at 4:39 am

    In the ccnet config, in the project, at the top of the tasks block:

    <modificationWriter>
     <filename>svn_mods.xml</filename>
     <path>c:\modsdir</path>
    </modificationWriter>
    

    This will write the SVN modifications to a file.

    Next in the tasks block:

    <nant>
     <executable>c:\path_to_nant</executable>
     <buildFile>mybuildfile.build</buildFile>
     <targetList>
      <target>conditionally_run_nunit_tests</target>
     </targetList>
    </nant>
    

    This will run a Nant task after the modificationwriter task.

    In conditionally_run_nunit_tests, search the file c:\modsdir\svn_mods.xml for #runautotest. If you find it, run the tests. If you don’t find it then do nothing. There are various ways to parse the mods file. You could use C# script to read the entire file into a string and then call Contains passing in #runautotest.

    The below code is an example of using C# script in Nant. SearchFile opens a file, reads it into a string and checks if a value is in the string. It returns “yes” or “no”. The below script is untested.

    <property name="yesno" value="${ns::SearchFile("c:\modsdir\svn_mods.xml", "#runautotest")}"/>
    
    <script language="c#" prefix="ns">
        <references>
            <include name="System"/>
            <include name="System.IO"/>
        </references>
        <code>
        <![CDATA[   
        [Function("SearchFile")]
        public static string SearchFile(string filepath, string token) 
        {
            System.IO.StreamReader myFile = new System.IO.StreamReader(filepath);
            string myString = myFile.ReadToEnd();
            myFile.Close();
            if(myString.Contains(token)) return "yes";
            else return "no";
        }               
        ]]>
        </code>
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to migrate to svn from a not-so-famous version control system (lets
I've got a situation where I'm contemplating using subversion/svn as the repository/version control system
I have a Linux test server in which sometimes the code of a system
we have a build system that uses the svn ID as an imput to
I have a system sitting on a Master Server, that is periodically transferring quite
I have a subversion server, providing subversion access via Apache2 and mod_dav_svn The system
So we have two automated processes on our build system. The first performs an
I have 3 projects that I use svn for them. My folder system is
I have a directory that is in our svn repository. On my local system,
I use svn and asp.net. We have a website and there is an error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.