Badgerati/Edison

View on GitHub

Showing 71 of 215 total issues

Method AddFailedTestResult has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private void AddFailedTestResult(TestResult result)
        {
            if (result.State == TestResultState.Success)
            {
                return;
Severity: Minor
Found in Edison.GUI/Form1.cs - About 1 hr to fix

    Method GetCategories has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public IEnumerable<string> GetCategories(
                Assembly assembly,
                IEnumerable<MethodInfo> tests = default(IEnumerable<MethodInfo>),
                IEnumerable<Type> fixtures = default(IEnumerable<Type>))
            {
    Severity: Minor
    Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 1 hr to fix

      Method Validate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public void Validate(EdisonContext context)
              {
                  // only validate if we have a URL supplied
                  if (string.IsNullOrWhiteSpace(context.TestResultURL))
                  {
      Severity: Minor
      Found in Edison.Engine/Validators/TestResultUrlValidator.cs - About 1 hr to fix

        Method ValidateUrl has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public static bool ValidateUrl(string url)
                {            
                    try
                    {
                        var urlNoParams = (new Uri(url)).GetLeftPart(UriPartial.Path);
        Severity: Minor
        Found in Edison.Framework/Browsers/BrowserHelper.cs - About 1 hr to fix

          Method PopulateTestResultOnException has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  private TestResult PopulateTestResultOnException(MethodInfo testMethod, TestResult result, Exception ex, bool globalSetup, bool fixSetup, bool setup, bool teardown, bool test, TimeSpan time)
          Severity: Major
          Found in Edison.Engine/Threading/TestThread.cs - About 1 hr to fix

            Method RunTests has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    private void RunTests(List<string> tests, List<string> fixtures)
                    {
                        if (Assembly == default(Assembly) || (MainThread != default(Thread) && MainThread.ThreadState == ThreadState.Running))
                        {
                            return;
            Severity: Minor
            Found in Edison.GUI/Form1.cs - About 1 hr to fix

              Method ValidSolutionAndAssemblyTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public void ValidSolutionAndAssemblyTest()
                      {
                          var sln = "dummy/path/to.sln";
                          var dll1Win = @"dummy\path\Edison.Framework\bin\Debug\Edison.Framework.dll";
              Severity: Minor
              Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs - About 1 hr to fix

                Method InvalidFileForTestsTest has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public void InvalidFileForTestsTest()
                        {
                            var test = "this.is.some.test";
                            var file = "dummy/path/to/file";
                Severity: Minor
                Found in Edison.Console.Test/ParameterParserTests.cs - About 1 hr to fix

                  Method InvalidFileForFixturesTest has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          [Test]
                          public void InvalidFileForFixturesTest()
                          {
                              var dll = "dummy/path/to.dll";
                              var fixture = "this.is.some.fixture";
                  Severity: Minor
                  Found in Edison.Console.Test/ParameterParserTests.cs - About 1 hr to fix

                    Method ExpectedActualMessage has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            protected virtual string ExpectedActualMessage(string premessage, string preExpected, object expected, string postExpected, string preActual, object actual, string postActual)
                    Severity: Major
                    Found in Edison.Framework/Asserts/Assert.cs - About 50 mins to fix

                      Method GetTestFixtures has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                                  Assembly assembly,
                                  IList<string> includedCategories,
                                  IList<string> excludedCategories,
                                  IList<string> fixtures,
                                  IList<string> tests,
                      Severity: Minor
                      Found in Edison.Engine/Repositories/Interfaces/IAssemblyRepository.cs - About 45 mins to fix

                        Method GetTestFixtures has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                    Assembly assembly,
                                    IList<string> includedCategories,
                                    IList<string> excludedCategories,
                                    IList<string> fixtures,
                                    IList<string> tests,
                        Severity: Minor
                        Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 45 mins to fix

                          Method GetTestCount has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                      Assembly assembly,
                                      IList<string> includedCategories,
                                      IList<string> excludedCategories,
                                      IList<string> fixtures,
                                      IList<string> tests,
                          Severity: Minor
                          Found in Edison.Engine/Repositories/Interfaces/IAssemblyRepository.cs - About 45 mins to fix

                            Method PopulateTestResult has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    private TestResult PopulateTestResult(MethodInfo testMethod, TestResult result, TestResultState state, TimeSpan time, string errorMessage = "", string stackTrace = "")
                            Severity: Minor
                            Found in Edison.Engine/Threading/TestThread.cs - About 45 mins to fix

                              Method GetTestCount has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                          Assembly assembly,
                                          IList<string> includedCategories,
                                          IList<string> excludedCategories,
                                          IList<string> fixtures,
                                          IList<string> tests,
                              Severity: Minor
                              Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 45 mins to fix

                                Method GetTests has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                            Assembly assembly,
                                            IList<string> includedCategories,
                                            IList<string> excludedCategories,
                                            IList<string> fixtures,
                                            IList<string> tests,
                                Severity: Minor
                                Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 45 mins to fix

                                  Method GetTests has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                              Assembly assembly,
                                              IList<string> includedCategories,
                                              IList<string> excludedCategories,
                                              IList<string> fixtures,
                                              IList<string> tests,
                                  Severity: Minor
                                  Found in Edison.Engine/Repositories/Interfaces/IAssemblyRepository.cs - About 45 mins to fix

                                    Method RunTestFixtureCases has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            private void RunTestFixtureCases(Type testFixture, IEnumerable<TestCaseAttribute> cases, int testFixtureRepeat, IEnumerable<MethodInfo> fixtureSetup, IEnumerable<MethodInfo> fixtureTeardown)
                                    Severity: Minor
                                    Found in Edison.Engine/Threading/TestFixtureThread.cs - About 35 mins to fix

                                      Method GetMethods has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      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
                                      Severity: Minor
                                      Found in Edison.Engine/Repositories/ReflectionRepository.cs - About 35 mins to fix

                                        Method ExpectElement has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                IAssert ExpectElement(IBrowser browser, HtmlIdentifierType identifierType, string expectedIdentifier, int attempts = 10, string message = null);
                                        Severity: Minor
                                        Found in Edison.Framework/Asserts/IAssert.cs - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language