Coder Social home page Coder Social logo

restarting tests after completion about tcunit HOT 8 CLOSED

tcunit avatar tcunit commented on May 18, 2024
restarting tests after completion

from tcunit.

Comments (8)

sagatowski avatar sagatowski commented on May 18, 2024

You can ignore a test by simply starting the testname with disabled_. Then you don't need to run the tests that are taking a long time. If this was the problem?

from tcunit.

Aliazzzz avatar Aliazzzz commented on May 18, 2024

from tcunit.

sagatowski avatar sagatowski commented on May 18, 2024

I'm not sure I follow then. You only want to re-run the tests that are new, and also without doing a restart of the runtime?
Or is it just that you don't want to restart the runtime, though it's fine that all tests are re-run?

from tcunit.

Aliazzzz avatar Aliazzzz commented on May 18, 2024

Bingo!
Re-run the tests that are new, without doing a restart of the runtime. That is what I ment.

The writing and the tuning of a new test, running the test with cold starting the PLC each time gets "tedious" after a full day... I think I inherited a healthy dose of lazyness.

I have a suggestion. Maybe we can think of a feature which alleviates the dev-cycle.
It will save some time and effort as the RUN() command simply runs all testssuites once and only once.
This offcourse is good and should not be altered. However, maybe we can add a new function which can start and restart (run/rerun) a certain testsuite (or predefined testsuites) at will.
RERUN( ptTestSuiteWhichWeWantToRUN, xStart );

The function is offcourse only neccesary in debug cycles.
When writing and testing of tests is done, this code should be replaced with RUN();

I'd love to hear your opinion on this

from tcunit.

sagatowski avatar sagatowski commented on May 18, 2024

In any case I guess it would be necessary to do a restart of the runtime, if the code is to be altered, no?

What I usually do when I need to re-run test is to simply comment all the test-suites that I know are passing, test the new test-suites, and then uncomment all. Isn't this (in most cases) just as fast as have to create some sort of array with pointers to a test-suite, and make a separate call to them (while re-starting the runtime as well)?

from tcunit.

Aliazzzz avatar Aliazzzz commented on May 18, 2024

The usecase requires no coding, just patience ;-)

Closed

from tcunit.

Bulkje avatar Bulkje commented on May 18, 2024

When I'm writing tests and I don't want to run all the testsuites, I just comment them out. Or disable extendedtestresults in tcunit parameters. Just make sure not to commit it.

from tcunit.

Stevenlawrencehoriba avatar Stevenlawrencehoriba commented on May 18, 2024

I am hitting the same issue, i have lots of tests in the test suite and its crazy trying to debug a test embedded in a testsuite, when you want to debug it and have to re-run, the whole shibang to debug one function. and example of how to go about disbabing 100 tests in set of test suits, without going through every single one. can you just disable a top level suite of tests. an example would help, but to be able to loop the test suite over and over woudl be useful when debugging, with a small delay between test runs which can be configurable. OR coudl i just put a FOR LOOP aroudn the RUN code to continuosly run it?

from tcunit.

Related Issues (20)

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.