Code Monkey home page Code Monkey logo

peaky's People

Contributors

brettmorien avatar ckurt avatar colombod avatar cynicaloptimist avatar gitter-badger avatar jaybazuzi avatar jonsequitur avatar nathanboktae avatar phillippruett avatar sukesake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

peaky's Issues

Test list and results list should scroll independently

In the new UI, when the left pane showing tests that can be run shows a long list of tests, then when you scroll the page down and run one, the result appears on the right-hand side out of view. You have to scroll back up to see it.

Peaky.ApplicationBuilderExtensions.UsePeaky is not threadsafe.

Found while parallelizing tests:

<Message>System.InvalidOperationException : Collection was modified; enumeration operation may not execute.</Message>
          <StackTrace>   at System.ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion()
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Linq.Enumerable.&lt;OfTypeIterator&gt;d__32`1.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at Peaky.ApplicationBuilderExtensions.UsePeaky(IApplicationBuilder app)
   at MLS.Orchestrator.Startup.Configure(IApplicationBuilder app, IApplicationLifetime lifetime, IServiceProvider serviceProvider, IAntiforgery antiforgery, ILoggerFactory loggerFactory) in /home/tyoverby/workspace/trydotnet/orchestrator/MLS.Orchestrator/Startup.cs:line 242
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
   at Microsoft.Extensions.DependencyInjection.IServiceCollectionExtensions.InjectApiVersionRoutePolicy.&lt;&gt;c__DisplayClass2_0.&lt;Configure&gt;b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter.&lt;&gt;c__DisplayClass0_0.&lt;Configure&gt;b__0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at Microsoft.AspNetCore.TestHost.TestServer..ctor(IWebHostBuilder builder, IFeatureCollection featureCollection)
   at MLS.Orchestrator.Tests.OrchestratorService.CreateTestServer(Action`1 configureServices, Action`1[] agents) in /home/tyoverby/workspace/trydotnet/orchestrator/MLS.Orchestrator.Tests/OrchestratorService.cs:line 46
   at MLS.Orchestrator.Tests.OrchestratorService..ctor(Action`1 configureServices, Action`1[] agents) in /home/tyoverby/workspace/trydotnet/orchestrator/MLS.Orchestrator.Tests/OrchestratorService.cs:line 35
   at MLS.Orchestrator.Tests.OrchestratorService..ctor(Action`1[] agents) in /home/tyoverby/workspace/trydotnet/orchestrator/MLS.Orchestrator.Tests/OrchestratorService.cs:line 29
   at MLS.Orchestrator.Tests.WorkspaceController_Specs.&lt;Compile_with_a_null_snippet_returns_bad_request&gt;d__0.MoveNext() in /home/tyoverby/workspace/trydotnet/orchestrator/MLS.Orchestrator.Tests/Workspace_Controller_Specs.cs:line 14
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()</StackTrace>
        </ErrorInfo>
      </Output>

Workaround: don't use this method in unit tests.

test discovery fails due to unresolvable dependencies

For example:

TestClass A depends on Dependency1 and has a registration for it in the test targets.
TestClass B does not depend on Dependency1 and has no registration for it in the test targets.
When resolving all test classes during test discovery where any class valid for that URL, e.g.

/tests/environment/TestClassB --> 500
/tests/environment/TestClassA --> 200
/tests/environment --> 500

originally filed by jonsequitur

Knockout bindings in Monitoring UI case sensitive to API results

The Api returns all discovered tests in a field called .Tests from the MonitoringTestController. If you have a camel case contract resolver, then .tests is the property from that controller.

Need to either make the knockout check both cases, or configure the monitoring test controller to use the default contract resolver.

Optional Test Parameters of string cannot be defaulted to null

Exception in thrown on MapTestRoutes call.
This very likely is the case for more than just strings.

[ArgumentException: Expression of type 'System.Object' cannot be used for parameter of type 'System.String' of method 'System.Threading.Tasks.Task1[System.Object] CreateCustomClock(System.String)']
System.Linq.Expressions.Expression.ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arg, ParameterInfo pi) +4401680
System.Linq.Expressions.Expression.ValidateArgumentTypes(MethodBase method, ExpressionType nodeKind, ReadOnlyCollection1& arguments) +138 System.Linq.Expressions.Expression.Call(Expression instance, MethodInfo method, IEnumerable1 arguments) +70
Its.Log.Monitoring.TestDefinition1.BuildTestMethodExpression(MethodInfo methodInfo, IEnumerable1 parameters) +213
Its.Log.Monitoring.TestDefinition`1..ctor(MethodInfo methodInfo) +300

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +243
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1065
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +124
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +20
Its.Log.Monitoring.TestDefinition.Create(MethodInfo methodInfo) +138
System.Linq.WhereSelectArrayIterator2.MoveNext() +58 System.Linq.<SelectManyIterator>d__162.MoveNext() +227
Its.Log.Monitoring.TestDiscovery.GetTestDefinitions(IEnumerable1 monitoringTests) +341 Its.Log.Monitoring.HttpConfigurationExtensions.MapTestRoutes(HttpConfiguration configuration, Action1 configureTargets, String baseUri, IEnumerable1 testTypes, HttpMessageHandler handler, String testUiScriptUrl, IEnumerable1 testUiLibraryUrls) +754
Microsoft.Datamarket.Monitoring.Web.Startup.Configuration(IAppBuilder app) in C:\Git\monitoring\Monitor.Web\Startup.cs:469

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +101
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +21
Owin.Loader.<>c__DisplayClass12.b__b(IAppBuilder builder) +77
Owin.Loader.<>c__DisplayClass1.b__0(IAppBuilder builder) +139
Microsoft.Owin.Host.SystemWeb.<>c__DisplayClass2.b__0(IAppBuilder builder) +69
Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action1 startup) +546 Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action1 startup) +58
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +95
System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func1 valueFactory) +115 System.Threading.LazyInitializer.EnsureInitialized(T& target, Boolean& initialized, Object& syncLock, Func1 valueFactory) +72
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +96
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +534
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9946132
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261`

auto-link rendering for Peaky UI

It would be nice to render string properties that are URLs (matching /^https?/) as links automatically (with target="_blank")

originally requested by nathanboktae in Its.Log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.