This question already has an answer here:
How to delete test cases from Team Foundation Server
(1 answer)
Closed 7 years ago.
is there any way to remove completely a testcase from tfs 2012? I search for ways via google but it seems there is no way but maybe anyone has an special trick?
Test cases are work items. And work items can (with standard permissions) only be set to the state "Removed".
But you can "Destroy" a workitem from the commandline to eradicate it completely. The command is:
witadmin destroywi /collection:http://server:port/tfs/Collection /id:1
You can delete multiple work items in one go by passing a comma separated list to the id parameter
witadmin destroywi /collection:http://server:port/tfs/Collection /id:1,2,3,4
See also:
Remove workitems permanently
Related
This question already has answers here:
Compile Inno Setup installer for specific component only
(1 answer)
How do I build two different installers from the same script in Inno Setup?
(2 answers)
Closed 13 days ago.
What is the best way to create automated setups to deliver our software to different customers (each customer should only get access to those files that they need)?
We already have a script that generates a working setup whenever someone updates our repository on GitHub.
But naturally every customer uses very specific files, which we need to handle.
After thinking a bit I have come up with two possible concepts per section:
[Setup Content]
The setup only holds very general data. All customer-specific files are stored on a webserver.
OR
The setup holds everything.
[Access Custom Settings]
Each customer will need to enter their id to download custom settings.
OR
A wrapper setup is generated per customer. It does nothing more than temporarily unwrap the main setup and send the customer id as an argument.
This question already has answers here:
Run Greasemonkey script on the same page, multiple times?
(2 answers)
How do I reload a Greasemonkey script when AJAX changes the URL without reloading the page?
(2 answers)
Closed 4 years ago.
Our recent upgrade from Jira Server v6.x to v7.x resulted in timestamps switching from absolute (24/Oct/18 11:37 AM) to relative (2 days ago) display. I know v7 has a global setting for relative vs. absolute timestamps but enough of my teammates like the relative timestamps that we can't make everyone happy with either system-wide setting. I'm trying to write a user script (for Tampermonkey) to fix the display in the browser. That way users who want absolute timestamps can get them without disturbing others.
I have the logic working. If I go to https://<myJiraServer>/browse/TICKET-123, all of the timestamps are processed. However, common scenarios leave timestamps unprocessed.
if I search for issues then click the issue key or summary to view issue details, the script doesn't seem to kick in.
if I refresh the resulting issue, the script runs but the back button doesn't get me to the search results.
if I shift-click the issue in the search results, the issue opens in a new window and the script runs
I've tried all the possible run-at settings but there seems to be something magic about how Jira replaces the search results page with the issue details that doesn't trip any of them. I wonder about injecting the script at document-start and having it rerun my processing with a timer or something. Any better thoughts?
This question already has an answer here:
Is there a way to do a partial checkin in TFS?
(1 answer)
Closed 6 years ago.
Is it possible to perform a "partial" or "patch" commit in Team Foundation? I have a single file with two lines that have been modified, but I only want to commit one of those lines. Git has this functionality in the "git add -p" command. Does TFS have something similar?
My problem more specifically is: my .proj file has changes to the database connections settings that I don't want committed to TFS (since this is a connection to a development database on my own dev computer). However, I have deleted a file in the project, so I want to commit the removal of the reference from the .proj file. I'm using Team Foundation Server 11 and Visual Studio 2010.
No.
You can undo one of those changes, commit the remaining one, then reapply the change you didnt' want to go.
OR
You could shelve your current changes, make the change to delete the file, commit that then unshelve your change set and keep working.
Using TFS and Visual Studio 2010, is it possible to get a report of the number of lines of code each team member has written?
I know the Annotate feature allows you to see who is responsible for all of the code within a file, but is there anything that would aggregate this into a total number for each team member??
I wrote a powershell script that requires TFS Power Tools and takes an extremely long time to run, and is really kind of embarrassing code because it's the first thing I've written in powershell. You're welcome to grab it from my bitbucket repository. If you fix or improve anything, please send me an update.
All it does recursively go through (almost all) the files from the current path, and run annotate on each one, grab the changeset # from each line and increment a dictionary entry for that changeset, then loops through each changeset and finds the responsible user and adds that changeset's lines into that user's dictionary entry. It spits it out in a html table, so run it like LineCount.ps1 > LineCount.html
You may be able to use http://msdn.microsoft.com/en-us/library/ms244698%28v=VS.90%29.aspx if you're running a version of SQL capable of using data cubes
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Get all files from VSS for a given date?
I need to get a complete project recursively as it existed on a specified date in the past. How can I do that without having to look at and selectively recover each individual file? Source Safe 8.0
Actually, it might be possible. Here are instructions I received from a co-worker (thanks Bruce!) for doing just that with SourceSafe 6:
In the VSS database, select the top-most project (not an individual file in the project) that you are interested in.
Get the history for that project, making sure that the "Recursive" and "Include file histories" check boxes are selected. The "Include Labels" check-box is optional, but you definitely don't want "Labels only."
Select the file / date you're interested in from the history list box.
Click the "Get" button.
Click the "Yes" button on the pop-up dialog that asks, "Get the entire project containing this file version?"
Hope this helps (for next time).
If that particular version was not branched out or labelled, I believe you have no choice but to manually check and recover each file from Visual Sourcesafe.
More information on labelling and branching and sharing for Visual Sourcesafe over at MSDN.
If you have a choice of using another SCM, I would recommend using Visual SVN to integrate an SVN Server with Visual Studio.