Friday, 19 April 2013

svn create new project


Create a directory in your working copy:
$ svn mkdir newdir
A         newdir
Create one in the repository (this is an instant commit, so a log message is required):
$ svn mkdir -m "Making a new dir." http://svn.red-bean.com/repos/newdir

Committed revision 26.

From the directory containing the commonsproj/ directory, issue the svn import
          command.  Example (all on one line!): 

          
            svn import commonsproj 
              svn+ssh://mylogin@svn.berkeley.edu/svn/berkeley/projects/commons/my/new/project/path 
              -m "original commit"

If you want create branch from trunk or tag

svn copy svn+ssh://host.example.com/repos/project/trunk \
           svn+ssh://host.example.com/repos/project/branches/NAME_OF_BRANCH \
      -m "Creating a branch of project"
DELETE:  svn delete PATH
svn delete URL     
1)           Items specified by PATH are scheduled for deletion upon next commit.
2)          Files which are not committed immediately removed from the working copy unless the –-keep-local option is given.
3)           The command will not remove any un-versioned or modified items; use the – force option to override this behavior.
4)           Items specified by URL are deleted from the repository via an immediate commit. Multiple URLs are committed automatically.
$ svn delete http://my.sp.com/svn/sp/trunk/SPFV-Api -m"to re-fresh"
$ svn delete myFile
D                myFile
svn commit –m”deleted files”
Deleting     myFile
Committed …………………………

$ svn delete  - - force myfile

Tuesday, 16 April 2013

UI testing for IOS (calabash ios)


  1. In a terminal, go to your iOS project
    • cd path-to-my-ios-project (i.e. directory containing .xcodeproj file)
  2. Install calabash-cucumber gem (this make take some time because of dependencies)
    • gem install calabash-cucumber
    • (Note you may need to run sudo gem install calabash-cucumber if you get ERROR: While executing gem ... (Gem::FilePermissionError)).
  3. Setup your project for Calabash-iOS.
    • calabash-ios setup (Answer the questions and read the output :)
  4. Generate a skeleton features folder for your tests
    • calabash-ios gen (this also copies the scripts irb_iosX.sh for "interactive development" into your current dir)
  5. In Xcode, build your project using the -cal scheme
    • -cal scheme
  6. Run the generated test!
    • cucumber