Git Product home page Git Product logo

Comments (8)

CADbloke avatar CADbloke commented on July 4, 2024

I haven’t used this library for quite a while. I recall having issues with the core console - only the 1st version worked properly like a console then Autodesk changed the behaviour.

Did you try running it in AutoCAD and starting the tests with a command?

Also, the NUnit NuGet package is probably really out of date.

I don’t have much time in the near future to look at this but I’ll try to get to it.

from cadtest.

sn0vv avatar sn0vv commented on July 4, 2024

Thanks for your quick response.

I start running the tests by clicking Test Explorer on Visual Studio.
cadTest

from cadtest.

CADbloke avatar CADbloke commented on July 4, 2024

That definitely won’t work. Have you read the wiki? There should be instructions in there on how to run the tests. I think. I might be thinking of the wrong project :/. Spoiler alert: you run the from inside AutoCAD, not from Visual Studio.

from cadtest.

CADbloke avatar CADbloke commented on July 4, 2024

Yeah nah wrong project. This readme is it.
You need to use a command in AutoCAD to start the tests running. I’m on a phone tonight, I’ll try to get a look at it when I am next in front of a computer.

from cadtest.

CADbloke avatar CADbloke commented on July 4, 2024

Here is the line in the code where it runs the tests: https://github.com/CADbloke/CADtest/blob/master/CADtest-CS/CADtestRunner.cs#L22

So you NETLOAD the dll into AutoCAD and then run the command RunCADtests

It does not run in Visual Studio, it only runs from inside AutoCAD.

from cadtest.

sn0vv avatar sn0vv commented on July 4, 2024

I understand that I should have used 'RunCADtests' to run the tests.
Now CADTest seems to work.
Thanks a lot.

For someone's interest, I put my work records.
debugSetting

AutoNetLoad2018.scr

netload "C:\temp\CADtest-master\CADtest-CS\bin\Debug\CADtest-CS.dll"RunCADtests

Hmm, Report-NUnit.xml is not generated...
testRunner

from cadtest.

CADbloke avatar CADbloke commented on July 4, 2024

System.IO.DirectoryNotFoundException - the directoryReportUnit does not exist (yet).

After this line: https://github.com/CADbloke/CADtest/blob/master/CADtest-CS/CADtestRunner.cs#L28

Add

Directory.CreateDirectory(directoryReportUnit);

or pull this repo - I added it here.

from cadtest.

sn0vv avatar sn0vv commented on July 4, 2024

I've added the line.
For someone's interest, I put my work records.

NUnitLite 3.5 works, but higher does not.
nunitlite

I've built ReportUnit and put exe in directoryReportUnit.
https://github.com/reportunit/reportunit

Report-NUnit.html looks nice.
reportUnit

from cadtest.

Related Issues (10)

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.