Git Product home page Git Product logo

testrunner's People

Contributors

macro187 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

testrunner's Issues

Fold `Results` into `Events`

Is there any reason for the Results classes to exist separately from their respective End events, or can they just be folded into them?

TestContext support

Hi,

I don't have the TestContext available in my Tests (e.g. in a [AssemblyInitialize] method) if I run the test with the testrunner.exe.

Is it possible to get the TestContext in another way or do you know how to fix the problem?

Many thanks!

Multiprocess not working on .NET Core

This is probably because TestRunner needs to be taught how to re-invoke itself using the dotnet command on .NET Core.

=================================
testrunner v1.0.0
Copyright (c) 2012-2018
Ron MacNeil, Rickenberg, JDeltorp
=================================

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

TestContext property getter(s) not working on .NET Core

For some reason, .NET Core will not accept the dynamically generated TestContext overrides. .NET Framework seems to accept them.

=============================================================================================
Assembly: testrunner.Tests.MSTest/bin/Debug/netcoreapp2.0/publish/testrunner.Tests.MSTest.dll
=============================================================================================

Test Assembly:
C:\p\testrunner\testrunner.Tests.MSTest\bin\Debug\netcoreapp2.0\publish\testrunner.Tests.MSTest.dll

[AssemblyInitialize] AssemblyInitialize()

An internal error occurred in testrunner.dll:
Method 'get_Properties' in type 'TestContextProxy' from assembly 'TestContextProxyAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Type: System.TypeLoadException
Source: System.Private.CoreLib
StackTrace:
  at System.Reflection.Emit.TypeBuilder.TermCreateClass(RuntimeModule module, Int32 tk, ObjectHandleOnStack type)
  at System.Reflection.Emit.TypeBuilder.CreateTypeNoLock()
  at System.Reflection.Emit.TypeBuilder.CreateTypeInfo()
  at TestRunner.Domain.TestContextProxy.GetTypeFromTypeBuilder(TypeBuilder typeBuilder)
    in C:\p\testrunner\testrunner\Domain\TestContextProxy.cs:line 189
  at TestRunner.Domain.TestContextProxy.BuildProxy()
    in C:\p\testrunner\testrunner\Domain\TestContextProxy.cs:line 59
  at TestRunner.Domain.TestContextProxy.get_Proxy()
    in C:\p\testrunner\testrunner\Domain\TestContextProxy.cs:line 26
  at TestRunner.Program.Program.RunMethod(MethodInfo method, Object instance, Boolean takesTestContext, Type expectedException, Boolean expectedExceptionAllowDerived, String prefix)
    in C:\p\testrunner\testrunner\Program\Program.cs:line 509
  at TestRunner.Program.Program.RunTestAssembly(String assemblyPath)
    in C:\p\testrunner\testrunner\Program\Program.cs:line 198
  at TestRunner.Program.Program.Main2(String[] args)
    in C:\p\testrunner\testrunner\Program\Program.cs:line 59

Add --class option

To run only particular test class(es).

Original request:

Could you add some arguments to the command line to limit the run to any/some testclass or any/some testmethod

ex:

testrunner.exe C:\Path\To\TestAssembly.dll C:\Path\To\AnotherTestAssembly.dll -c "xxxns.yyyyns.MyTestClass1,xxxns.zzzns.MyTestClass2" -m "xxxns.zzzns.MyTestClass3.TestingMethod1,......"

Remove assembly reference(s) from test suites to TestRunner

All tests currently fail with the following exception, likely due to how per-test-assembly child processes are being run. Does not occur on Windows.

Could not resolve type with token 01000008
  Type: System.TypeLoadException
  StackTrace:
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038]
      in <f712f98eb8e445c8918edaf595bbe465>:0

Move non-essential logic out of runners into event handlers

Runners are still doing too much, e.g. results tabulation, "success" decision logic, and maybe more.

Reify method, test, class, and assembly result information as types in a new Results namespace.

Teach *End events to carry results using those types.

Shift logic that aggregates finer-grained event(s) into *End results into a new ResultBuilderEventHandler or similar.

???

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.