Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting for OpenCover -register switch #208

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Introduce new field for coverage settings
  • Loading branch information
jgasiorowski committed Sep 24, 2019
commit 5d7a3d375b7a8e78ab8e4e3a9af0a22b19365331
1 change: 1 addition & 0 deletions AxoCover/Models/Storage/IOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public interface IOptions
int DebuggerTimeout { get; set; }
bool IsDebugModeEnabled { get; set; }
bool IsAutoBuildEnabled { get; set; }
string RegisterAs { get; set; }

event PropertyChangedEventHandler PropertyChanged;
}
Expand Down
6 changes: 6 additions & 0 deletions AxoCover/Models/Storage/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ public int VisitorCountLimit
get { return Settings.Default.VisitorCountLimit; }
set { Settings.Default.VisitorCountLimit = value; }
}

public string RegisterAs
{
get { return Settings.Default.RegisterAs; }
set { Settings.Default.RegisterAs = value; }
}
#endregion

#region Visualization settings
Expand Down
12 changes: 12 additions & 0 deletions AxoCover/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions AxoCover/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,8 @@
<Setting Name="IsShowingAnchors" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="RegisterAs" Type="System.String" Scope="User">
<Value Profile="(Default)">user</Value>
</Setting>
</Settings>
</SettingsFile>
9 changes: 9 additions & 0 deletions AxoCover/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions AxoCover/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -672,4 +672,7 @@
<data name="OpenCoverageFailed" xml:space="preserve">
<value>Cannot import OpenCover coverage file {0}.</value>
</data>
<data name="RegisterAs" xml:space="preserve">
<value>Register coverage tool as</value>
</data>
</root>
4 changes: 4 additions & 0 deletions AxoCover/Views/SettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@

<CheckBox Content="{x:Static res:Resources.IsSkippingAutoProps}" IsChecked="{Binding Options.IsSkippingAutoProps}" Margin="3"/>
<TextBlock Text="{x:Static res:Resources.IsSkippingAutoPropsDescription}" Style="{StaticResource Description}"/>
<Separator/>

<TextBlock Text="{x:Static res:Resources.RegisterAs}" Style="{StaticResource SubHeader}"/>
<controls:ListEditor Margin="3" Value="{Binding Options.RegisterAs}"/>
<Separator/>

<DockPanel>
Expand Down
3 changes: 3 additions & 0 deletions AxoCover/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
<setting name="IsShowingAnchors" serializeAs="String">
<value>True</value>
</setting>
<setting name="RegisterAs" serializeAs="String">
<value>user</value>
</setting>
</AxoCover.Properties.Settings>
</userSettings>
<applicationSettings>
Expand Down