Comments (8)
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.
from tcunit.
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.
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.
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.
The usecase requires no coding, just patience ;-)
Closed
from tcunit.
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.
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)
- Add AssertNot* methods HOT 7
- FB_ReadJsonFile_Test HOT 2
- Test results of nested test suites don't show up in result summary HOT 13
- Assert does not play nice with properties HOT 2
- Duration is not calculated when running tests in sequence HOT 4
- Duration doesn't seem to be correctly calculated HOT 7
- TEST_FINISHED_NAMED no longer works HOT 3
- TcUnit.org website from source code HOT 2
- Update the toolchain for maintaining TcUnit HOT 1
- No test outputs shown in XAE shell when using TcBSD (simulated in VM) HOT 4
- Use datatype as testsuite name instead of instance path HOT 11
- Fails to execute TcUnit on TwinCAT user mode runtime HOT 4
- Adding empty string as actual-string to assert_string doesn't show the actual string HOT 3
- Test registering with TEST(...) space character issue HOT 2
- Wrong duration time (sometimes) calculated HOT 5
- Duration not calculated for TEST_ORDERED() tests HOT 4
- Use code coverage for unit testing HOT 1
- OS independent xUnit file path HOT 9
- Broken Link HOT 2
- Tests seem to run 4 times HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcunit.