Showing 71 of 215 total issues
Method AddFailedTestResult
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void AddFailedTestResult(TestResult result)
{
if (result.State == TestResultState.Success)
{
return;
Method GetCategories
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public IEnumerable<string> GetCategories(
Assembly assembly,
IEnumerable<MethodInfo> tests = default(IEnumerable<MethodInfo>),
IEnumerable<Type> fixtures = default(IEnumerable<Type>))
{
Method Validate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Validate(EdisonContext context)
{
// only validate if we have a URL supplied
if (string.IsNullOrWhiteSpace(context.TestResultURL))
{
Method ValidateUrl
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool ValidateUrl(string url)
{
try
{
var urlNoParams = (new Uri(url)).GetLeftPart(UriPartial.Path);
Method PopulateTestResultOnException
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private TestResult PopulateTestResultOnException(MethodInfo testMethod, TestResult result, Exception ex, bool globalSetup, bool fixSetup, bool setup, bool teardown, bool test, TimeSpan time)
Method RunTests
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void RunTests(List<string> tests, List<string> fixtures)
{
if (Assembly == default(Assembly) || (MainThread != default(Thread) && MainThread.ThreadState == ThreadState.Running))
{
return;
Method ValidSolutionAndAssemblyTest
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public void ValidSolutionAndAssemblyTest()
{
var sln = "dummy/path/to.sln";
var dll1Win = @"dummy\path\Edison.Framework\bin\Debug\Edison.Framework.dll";
Method InvalidFileForTestsTest
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public void InvalidFileForTestsTest()
{
var test = "this.is.some.test";
var file = "dummy/path/to/file";
Method InvalidFileForFixturesTest
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public void InvalidFileForFixturesTest()
{
var dll = "dummy/path/to.dll";
var fixture = "this.is.some.fixture";
Method ExpectedActualMessage
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected virtual string ExpectedActualMessage(string premessage, string preExpected, object expected, string postExpected, string preActual, object actual, string postActual)
Method GetTestFixtures
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Assembly assembly,
IList<string> includedCategories,
IList<string> excludedCategories,
IList<string> fixtures,
IList<string> tests,
Method GetTestFixtures
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Assembly assembly,
IList<string> includedCategories,
IList<string> excludedCategories,
IList<string> fixtures,
IList<string> tests,
Method GetTestCount
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Assembly assembly,
IList<string> includedCategories,
IList<string> excludedCategories,
IList<string> fixtures,
IList<string> tests,
Method PopulateTestResult
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private TestResult PopulateTestResult(MethodInfo testMethod, TestResult result, TestResultState state, TimeSpan time, string errorMessage = "", string stackTrace = "")
Method GetTestCount
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Assembly assembly,
IList<string> includedCategories,
IList<string> excludedCategories,
IList<string> fixtures,
IList<string> tests,
Method GetTests
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Assembly assembly,
IList<string> includedCategories,
IList<string> excludedCategories,
IList<string> fixtures,
IList<string> tests,
Method GetTests
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Assembly assembly,
IList<string> includedCategories,
IList<string> excludedCategories,
IList<string> fixtures,
IList<string> tests,
Method RunTestFixtureCases
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private void RunTestFixtureCases(Type testFixture, IEnumerable<TestCaseAttribute> cases, int testFixtureRepeat, IEnumerable<MethodInfo> fixtureSetup, IEnumerable<MethodInfo> fixtureTeardown)
Method GetMethods
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public IEnumerable<MethodInfo> GetMethods<T>(Type type,
IList<string> includedCategories = default(List<string>),
IList<string> excludedCategories = default(List<string>),
IList<string> tests = default(List<string>),
string suite = null) where T : Attribute
Method ExpectElement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IAssert ExpectElement(IBrowser browser, HtmlIdentifierType identifierType, string expectedIdentifier, int attempts = 10, string message = null);