1

I was wondering what is the best way to prepare a project (suite) for submit into version control. Since I am very happy with my way I wanted to share it. Maybe this helps someone. Criticism wanted. TestComplete must be closed before running this.

prepareForReconcileOfflineWork.bat

del /S *.bak
del /S *.tcLog
del /S *.tcLogs
del /S *.tcLS
del /S *.tcVis
del /S *.tlb
for /d /r . %%d in (doxygen_tmp,Log,testreview_tmp,Visualizer) do @if exist "%%d" rd /s /q "%%d"
4
  • I am not clear what you are asking? Are you looking for feedback on your script or are you looking for suggestions relating to how to prep a project to check in?
    – Dan Snell
    Jun 13, 2012 at 4:28
  • I am looking for both but especially your second point. What do you do before checking in a project? Am I missing something?
    – Michael S.
    Jun 13, 2012 at 10:48
  • Why not use the integrated source control?
    – semaj
    Jun 13, 2012 at 15:07
  • Integrated source control does not support Perforce.
    – Michael S.
    Jun 14, 2012 at 14:55

2 Answers 2

1

It sounds to me what you are looking for is a policy suggestion regarding your check ins. While I have not used TestComplete and Perforce my general rule of thumb is to check in what another user would need to build the project on their box. So if there are required dependencies such as .dlls and such those should be checked in the project. Settings files for the IDE or stuff like that may not be neccessary. You can verify this works by getting the source to a different directory or even better another machine and trying to build it there. I hope this helps a bit.

2

I use ignore list and here are what I added according to

  • All the log files and folders
  • *.~tc
  • *.tcLS
  • *.tcCfgExtender
  • Visualizer folder and its files
  • *.bak

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.