Releases: gleb-sevruk/pycrunch-engine
Skipped tests will no longer show as fails
See #12 for details
@skip
def test_should_be_skipped(self):
print('this should show as success in pycrunch report. This test will also not run.')
0.9.0 Support variable tracing inside the engine
For details please see:
#10
using sample code
from pycrunch.insights import trace
trace(variable_a=1, variable_b=dict(...))
It is now possible to output data into new PyCrunch Timeline window for simpler debbuging
0.7.2 Small issue fixed
Previously exception was raised when a file is deleted from project folder.
This was caused due to my switch to asyncio, and usually not happening during usage scenarios with adding\modification.
Now the issue is fixed.
0.7.1 parametrize test will fail if even one fails
Small fix to address false positive during failure in one of parametrized test
See #4 for details
0.7.0 - Use multiple processes for faster test execution
following configuration parameters added into .pycrunch-config.yaml:
cpu-cores
- How many processes to use for test execution. (More processes != faster times)multiprocessing-threshold
default is5
- Try to not pipeline 5 or less tests into multiple processes. Use single executor instead. 6 or more tests will be split intelligently across yourcpu-cores
engine:
runtime: pytest
# maximum number of concurrent test runners
cpu-cores: 4
# minimum number of tests to schedule per core (5 by default; if set to 1 - run each test in own process)
multiprocessing-threshold: 4
Some statistics (Intel i7 7700k 4-cores with multithreading enabled):
Total tests to run: 67
1 CPU
run tests - Duration - 7.775 seconds
2 CPU
run tests - Duration - 5.628 seconds
3 CPU
run tests - Duration - 3.709 seconds
4 CPU
run tests - Duration - 3.405 seconds
run tests - Duration - 3.37 seconds
5 CPU
run tests - Duration - 3.415 seconds
8 CPU
# no improvement at that point...
run tests - Duration - 3.451 seconds
50 CPU
run tests - Duration - 10.258 seconds
0.6 Get rid of flask
-
Rewritten communication protocols to use WebSockets only.
-
Get fid of flask dependency
-
Now engine will use aiohttp server instead of flask. (if you use aiohttp in your project, maybe it can conflict somehow, but this is no longer flask)
-
Included web-ui into the pip bundle
-
Web Ui will show more detailed timings statistics
-
Improves Dark Theme in Pycharm
Minor fix during test watch/discovery
Adding test file previously didn't add this file to watch queue, therefore all new tests in that file were not visible until engine restart. This is fixed.
Beta 1
v_05 Merge remote-tracking branch 'origin/master'