Selected elements in Git/GitHub for testing

Wonder how to deal with following use cases in Git/GitHub?

Testing use case  No. 1:  only want to run latest test cases A2 and C2, not any other test case.

Testing use case  No. 2:  only want to run test cases A1 and C1, not any other test case.

Testing use case  No. 3:  only want to run latest test cases A2 and C1, not any other test case.

Git  history:

commit: A1,B1,C1

commit: A1,B1,C1,D1

commit: A2,B1,C1,D1

commit: A2,B2,C2,D1,E1

Thanks.

Gary

Hi @garycv,

I’m having a little difficulty conceptualizing exactly what you want to do in such abstract terms. Would you be able to provide some more details about the type of project you’re working on, what technologies you’re using, or share the repository that you’re working with?

Thanks!

Basically I like to do file centric version control (like CC configspec)so some files can be selected and used for testing while other files will be not used. It’s an internal project. Sorry not able to share.

Let me to make a similar example and load it up in github.

@garycv Great! Once you’ve got something you can share publicly, please do come back and share the URL to the repo so that the community might be better able to help.