CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2001
    Posts
    872

    NUnit tests - need to run bat file in between

    here's what i do every now and then


    STEP 1. switch.to.oracle.bat
    STEP 2. run unit test against Oracle db
    [visual inspection on NUnit user interface after to make sure things are okay]
    STEP 3. switch.to.mysql.bat
    STEP 4. run unit test against MySQL
    [visual inspection on NUnit user interface after to make sure things are okay]
    STEP 5. switch.to.mssql.bat
    STEP 6. run unit test against M$SQL
    [visual inspection on NUnit user interface after to make sure things are okay]


    question is, how can i automate this?

  2. #2
    Join Date
    Jul 2008
    Posts
    70

    Re: NUnit tests - need to run bat file in between

    What does the switch.to.*.bat do?

    Can you change you connection string in the code and just run the NUnit test three times changing the connection setting each time?

  3. #3
    Join Date
    Feb 2001
    Posts
    872

    Re: NUnit tests - need to run bat file in between

    at present, it simply changes connection strings and provider in config files.

    But I need to do this, then run a test and visually inspect NUnit for verification. Then repeat the procedure for each database vendor which seems time consuming.

    It'd be nice if I can just have a report at the end of the day which tells me if app goes well with all...

    perhaps .NET Cruise control+NAnt... not sure haven't done that before

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured