Forum Discussion

Tony9's avatar
Tony9
New Contributor
2 years ago

.gitignore file

Hi,

We have a Bitbucket repository called "Automation-Tests" that has a sub-folder called "TestComplete" where we store the TestComplete tests. I think this is a common source control structure in a company as IT cannot create a repository for each test for each team.

Now, .gitignore in TestComplete v14.93 does not work in above source control. A support ticket sent to SmartBear a month ago, no solution yet. does someone has same situation?

PS, the .gitignore file is right under repository level, I can not change its path in Testcomplete.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    File .gitignore is usually in the root of your repository. You should not have to specify the file location.

    • Tony9's avatar
      Tony9
      New Contributor

      Great, the location of file .gitignore is anchored at least. My ticket helper let me try here and there....

      Thank you very much, rraghvani !

      So now next question, why the file .gitignore doesn't work in TestComplete v14.93?

      syntax: glob
      *.js.bak
      *.js.tcVis
      */Log/*
      *.sj.bak
      *.tcLS
      *.tcCfgExtender
      *.tcLogs

       

      tcCfgExtender file and logs show in commit popup all the time.

       

      Appreciate your any input here!

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    I'm not sure what you mean by "why the file .gitignore doesn't work in TestComplete v14.93?"

     

    If the repository has the .gitignore, then when you perform a check-in, it will ignore those files mentioned in .gitignore.

    • Tony9's avatar
      Tony9
      New Contributor

      the repository has the .gitignore, then when I perform a check-in, it will NOT ignore those files mentioned in .gitignore.