Zum Inhalt springen

Benutzer:MovGP0/Programmierung

aus Wikipedia, der freien Enzyklopädie
Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 28. März 2014 um 14:11 Uhr durch MovGP0 (Diskussion | Beiträge) (Continious Integration). Sie kann sich erheblich von der aktuellen Version unterscheiden.
   MovGP0        Über mich        Hilfen        Artikel        Weblinks        Literatur        Zitate        Notizen        Programmierung      


Testing-Begriffe

Dummy object
is passed around but never actually used. Usually they are just used to fill parameter lists.
Fake object
actually have working implementations, but usually take some shortcut which makes them not suitable for production (an in memory database is a good example).
Stub
provide canned answers to calls made during the test, usually not responding at all to anything outside what's programmed in for the test. Stubs may also record information about calls, such as an email gateway stub that remembers the messages it 'sent', or maybe only how many messages it 'sent'.
Mock
objects pre-programmed with expectations which form a specification of the calls they are expected to receive.

Versionsverwaltung

Tools

Powershell

Filtert SVN Ausdrücke
svn st | where {$_ -match "(?=[?|!]).*"}
svn st | where {$_ -match "(?=[?|!]).*"} | ?{$_ -notMatch ".*(bin\\[D|d]ebug).*"} | ?{$_ -notMatch ".*(obj\\[D|d]ebug).*"} | ?{$_ -notMatch ".*(\\obj)"} | ?{$_ -notMatch ".*(\\bin)"}
Finden von fälschlich eingestellten Binaries
svn list -R | ?{$_ -match ".*[(bin\\[D|d]ebug)|(obj\\[D|d]ebug)|(bin\\[R|r]elease)|(obj\\[R|r]elease)].*"}
Get-ChildItem -Recurse| ?{$_ -match ".*(\\[(bin)|(obj)]\\).*"}
Setzt Ignore-Flag
svn propset svn ignore FILE_OR_DIRECTORY
Findet Dateien nach Name
Get-ChildItem -Path "C:\." -Filter FileName.txt -Recurse
Setzt Umgebungsvariable
# get the correct directory
$programPath = if ( (${env:ProgramFiles(x86)}).Length -eq 0) { ${env:ProgramFiles} } else { ${env:ProgramFiles(x86) } }

# create the path to add to the path variable 
$pathToAdd = "$programPath\Java\jdk1.6.0_03\bin"

# get the current value for path 
$currentPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path

# create the new value for path
$newPath = "$currentPath;$pathToAdd" 

# variant1: set the path with the registry provider
Set-ItemProperty -Path 'Registry::HKLM\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH Value $newPath 

# variant2: set the path with the .NET framework  
[Environment]::SetEnvironmentVariable
     ( "Path", $newPath, [System.EnvironmentVariableTarget]::Machine )

Note: use HKCU (HKEY_CURRENT_USER) instead of HKLM (HKEY_LOCAL_MACHINE) when you want to set the variable only for the current user. That is 'User' instead of 'Machine' in the .NET variant. 

x64 oder x32 Programm?
dumpbin /headers PROGRAMMODERDLL

Issure Tracker

  • YouTrack. Jetbrains, abgerufen am 14. Februar 2014.
  • JIRA. Atlassian, abgerufen am 14. Februar 2014.
  • Planbox. Abgerufen am 14. Februar 2014.
  • Kanban Tool. Abgerufen am 14. Februar 2014.

Continious Integration

  • Teamcity. Jetbrains, abgerufen am 14. Februar 2014.
  • Hudson. Abgerufen am 14. Februar 2014.

IE-Testing

  • My Debugbar. Abgerufen am 28. August 2014 (englisch, Testen von Webseiten mit alten Versionen vom IE).